capabilities
Mavroyanopoulos Nikos
nmav at hellug.gr
Fri Jun 11 22:13:07 EEST 1999
On Wed, Jun 02, 1999 at 01:30:06AM +0300, Christos Ricudis wrote:
[...]
Merika comments. Epsaxa ola ta keimena tou linux pou mporesa na
brw gia ta capabilities. Omologw oti den brika polla,
ektos apo tin libcap-1.92. Eixe tin capset(), me tin opoia den asxolithika
kai tis cap_xxx() synartiseis (ypotithetai oi posix). Htan oi mones
portable kai etsi apofasisa na xrisimopoiisw autes, anti gia tin capset().
Min xerontas tin sxetiki diadikasia kai koitwntas tis manpages kai ta
headers katelixa sto:
<--->
cap_t capability;
cap_value_t *caps;
caps = malloc(1*sizeof(cap_value_t));
caps[0]=CAP_IPC_LOCK;
/* Edw (to cap_init()) den xerw giati, thetei ena EINVAL sto errno
* alla to capability den einai NULL
*/
capability=cap_init();
if (capability==NULL) {
perror("cap_init");
}
cap_set_flag( capability, CAP_PERMITTED, 1, caps, CAP_SET);
cap_set_flag( capability, CAP_EFFECTIVE, 1, caps, CAP_SET);
cap_set_flag( capability, CAP_INHERITABLE, 1, caps, CAP_CLEAR);
if ((cap_set_proc(capability) < 0) ) {
perror("cap_set_proc");
}
cap_free(capability);
free(caps);
<--->
Den xerw giati, alla (ws synithws) den leitourgei... Yparxei lathos
stin diadikasia?
Episis mias kai anaferei oti oi cap_xxx einai portable mipws xerei kaneis
se poia systimata einai portable?
--
Nikos Mavroyanopoulos
mailto:nmav at hellug.gr
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================
More information about the Linux-greek-users
mailing list