Semafory a sdilena pamet
Marek Dieze
dieze na brn.pvt.cz
Čtvrtek Duben 12 09:46:14 CEST 2001
Alexandr Malusek píše:
>
> man semctl:
> IPC_RMID Remove immediately the semaphore set and its
> data structures awakening all waiting pro-
> cesses (with an error return and errno set to
> EIDRM). The calling process effective user-ID
> must be one among super-user, creator or owner
> of the semaphore set. The argument semnum is
> ignored.
>
> Cesky: semafor muze odstranit proces s euid roota, vlastnika nebo
> tvurce.
>
> > Kdyz to tedy nejde, jak to mam udelat, aby to z uctu uziv2
> > slo?
>
> Krome metody pres suid root by to mohlo jit i tak, ze puvodni proces
> zmeni vlastnika semaforu na uziv2. Usuzuji tak ze sekce o IPC_SET,
> nastaveni sem_perm.uid. Ale mozna to spatne chapu, prakticky jsem to
> nezkousel.
Dekuji za informaci.
M.Dieze
Další informace o konferenci Linux