]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
cgrulesengd: Fixed processing of symlinked executables.
authorJan Safranek <jsafrane@redhat.com>
Mon, 22 Aug 2011 08:48:58 +0000 (10:48 +0200)
committerJan Safranek <jsafrane@redhat.com>
Tue, 20 Sep 2011 08:15:53 +0000 (10:15 +0200)
commitacbed86127d5d81d082fa5b90cac13a4f84f877e
treed0fcbfa2a7d75c737679a1a3e8cc63734d26b226
parentd1239ff1a464b96ee6d839d812049a1ad308cad1
cgrulesengd: Fixed processing of symlinked executables.

when an executable is symlinked and the symlink is executed,
/proc/PID/status contains name of the symlink, while /proc/PID/exe points
to the real executable name. cgrulesengd considered this case as error and
did not trigger any rule for this exec().

With this patch, cgrulesengd uses name of /proc/PID/exe as the executable
in this case.

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
src/api.c