Page 1 of 1

gradm often assigns +CAP_ALL without reason

PostPosted: Wed Sep 21, 2011 1:36 pm
by Undine
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?

Re: gradm often assigns +CAP_ALL without reason

PostPosted: Wed Sep 21, 2011 7:31 pm
by spender
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

Re: gradm often assigns +CAP_ALL without reason

PostPosted: Thu Sep 22, 2011 1:53 am
by Undine
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.