gradm often assigns +CAP_ALL without reason

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

gradm often assigns +CAP_ALL without reason

Postby Undine » Wed Sep 21, 2011 1:36 pm

And another annoying topic from me :lol: (seems to be my posts maybe ignored sometimes :cry: )
gradm often assigns +CAP_ALL without any reason. If program uses few capabilities (for example, CAP_DAC_*, CAP_SETU/GID), gradm in learning mode assigns +CAP_ALL without consulting me, what capabilities actually program requests.
P.S. Often there are same cases with objects too: program writes to it's own program configuration directory (/home/undine/.progname), but rights after learning are rwcd on whole home directory!
It is normal and I should see logs and manually rewrite subject?
Undine
 
Posts: 46
Joined: Thu Sep 08, 2011 7:08 am

Re: gradm often assigns +CAP_ALL without reason

Postby spender » Wed Sep 21, 2011 7:31 pm

Are you using the per-subject learning and forgot to add -CAP_ALL to the subject? If you leave out any capability rules it acts as though you want no capability restrictions to be learned and +CAP_ALL will appear in the learned policy. If that's not the case, I'd need to see your learning logs.

If you don't want /home/user being reduced, you can modify learn_config to reflect it.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: gradm often assigns +CAP_ALL without reason

Postby Undine » Thu Sep 22, 2011 1:53 am

spender wrote:Are you using the per-subject learning and forgot to add -CAP_ALL to the subject? If you leave out any capability rules it acts as though you want no capability restrictions to be learned and +CAP_ALL will appear in the learned policy. If that's not the case, I'd need to see your learning logs.

If you don't want /home/user being reduced, you can modify learn_config to reflect it.

-Brad

Thanks. Perhaps I forgot to add -CAP_ALL before learning the subject. Problem solved.
Undine
 
Posts: 46
Joined: Thu Sep 08, 2011 7:08 am


Return to grsecurity support

cron