Re: [PATCH 3/4] AUDIT: audit when fcaps increase the permitted or inheritable capabilities

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew G. Morgan
Date: Monday, October 20, 2008 - 10:53 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eric Paris wrote:

I'm confused by the choice of when to log this event.

File capabilities are required to give a process 'any' active
capabilities. That is they don't affect pI -> pI', but without fI or fP,
the post-execve() process is guaranteed to have no pP or pE capabilities.

Logging execve()s where there is only an increase in capabilities seems
wrong to me. To me it seems equally important to log any event where an
execve() yields pP != 0.


When rc != 0, the execve() will fail. Is it appropriate to log in this case?

Cheers

Andrew
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI/W5F+bHCR3gb8jsRAhM9AJ9oJL4PmdtMwHEkN0Xh0ZTHBlJPzgCfVT/8
1Rq4wgGWftqpaVXBmeAsEi8=
=W8R9
-----END PGP SIGNATURE-----
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] Audit support for file capabilities, Eric Paris, (Mon Oct 20, 3:25 pm)
Re: [PATCH 1/4] CAPABILITIES: add cpu endian vfs caps stru ..., Andrew G. Morgan, (Mon Oct 20, 10:50 pm)
Re: [PATCH 3/4] AUDIT: audit when fcaps increase the permi ..., Andrew G. Morgan, (Mon Oct 20, 10:53 pm)