linux egid

Άγγελος Οικονομόπουλος aoiko at cc.ece.ntua.gr
Tue Sep 3 01:21:01 EEST 2002


On Monday 02 September 2002 22:41, V13 wrote:
> On Monday 02 September 2002 19:24, Άγγελος Οικονομόπουλος wrote:
> > On Monday 02 September 2002 18:59, V13 wrote:
> > > On Monday 02 September 2002 14:32, Άγγελος Οικονομόπουλος wrote:
> > > > On Monday 02 September 2002 04:16, V13 wrote:
> > > > > .. den ksero ti na po ..
> > > > > Moy ksefeygei kapoia synartisi h opoia na kanei to parapano, h
> > > > > einai kapoio eidos paranoias ? Einai entelos pontio (no offence)
> > > > > na mporei na to kanei kapoios me plagio tropo (o opoios einai
> > > > > apolyta sostos) alla oxi kateytheian.
> > > >
> > > > dhladh auto pou 8eleis na kaneis einai na allazeis to egid mias
> > > > process enw thn exeis 3ekinhsei me diaforetiko egid?
> > >
> > > Se ena apo ta supplementary groups, ton opoion exei etsi kai alios ta
> > > dikaiomata.
> >
> > o xrhsths, oxi h process.
>
> kai to process...

nai, ontws malakies lew. me ephrease fainetai h proteinomenh allagh ths 
task_struct (afairesh twn parapanw kai pros8hkh ths vfs_cred) kai anti gia 
process skeftomoun thread. h pali isws na einai kairos na 3anarxisw ta 
psuxofarmaka, giati h katastash mou moiazei na xeirotereuei...

> apo to /usr/src/linux/include/linux/sched.h:
> struct task_struct {
> ....
> /* process credentials */
>         uid_t uid,euid,suid,fsuid;
>         gid_t gid,egid,sgid,fsgid;
>         int ngroups;
>         gid_t   groups[NGROUPS];
> ....
> };
>
> to groups einai ayta ta groups poy leme.. des kai tis getgroups(2) kai
> setgroups(2);
>
> > > > exw thn entonh entupwsh oti auto den mporei na to kanei oute o
> > > > superuser (xrhsimopoiontas syscalls, etsi?).
> > >
> > > O root mporei na alaksei oti thelei se oti thelei.
> >
> > sigoura, epeidh mporei na grapsei apeu8eias sth ram :)
>
> oxi den enoo afto... des ta man ton setgid(2), setegid(2), setregid(2)
> kai genika ta set*id(2)
>
> > Alla pws mporei na alla3ei to egid mias process? profanws auto 8a to
> > kanei mesw tou phruna, ara me poio system call? den 8a katsw _twra_ na
> > dw, alla nomizw oti den uparxei kati tetoio ston 2.4 -marcello.
>
> epimeno na ksanadeis to arxiko mail giati isos na leme to idio.

(/me hits head against the wall and slowly rereads op's first sentence)

pragmati, alla den mou fainetai _toso_ periergo. an den uparxei epitaktikh 
anagkh, den uparxei kai implementation.

auto pou 8eleis prepei na einai auto pou parexei h 
task_security_ops->setgid()[0] tou lsm, alla den pairnw kai orko, exei 
perasei kairos apo otan to koita3a.


[0] oxi, den to 8umamai ape3w, phga kai koita3a to onoma sto web. alla 
bariemai na katebasw to patch kai na bebaiw8w oti 8umamai kala.

-- 
Keep it simple to make it faster.
            - The Elements of Programming Style (Kernighan & Plaugher)




More information about the Linux-greek-users mailing list