Page 1 of 1

why zoneminder need to read /etc/shadow ?

Posted: Mon Jan 02, 2012 7:10 pm
by cquad
Hello,

When auditing selinux log (I am trying to make zoneminder selinux policy) I was surprised to see that zoneminder try to read /etc/shadow.
I don't find where is it in source code.

selinux seems to say it is in zmpkg.pl, but I can't see any reference to "shadow" in this file. I think but not sure, that's zmu binary which try to read this file.

Code: Select all

type=AVC msg=audit(1325527681.326:46234): avc:  denied  { read } for  pid=29069 comm="zmpkg.pl" name="shadow" dev=dm-0 ino=139442 scontext=unconfined_u:system_r:zoneminder_t:s0 tcontext=system_u:object_r:shadow_t:s0 tclass=file
type=AVC msg=audit(1325527681.326:46234): avc:  denied  { open } for  pid=29069 comm="zmpkg.pl" name="shadow" dev=dm-0 ino=139442 scontext=unconfined_u:system_r:zoneminder_t:s0 tcontext=system_u:object_r:shadow_t:s0 tclass=file
type=AVC msg=audit(1325527681.326:46235): avc:  denied  { getattr } for  pid=29069 comm="zmpkg.pl" path="/etc/shadow" dev=dm-0 ino=139442 scontext=unconfined_u:system_r:zoneminder_t:s0 tcontext=system_u:object_r:shadow_t:s0 tclass=file
I am running zoneminder 1.24.4 on CentOS 6.

Thanks in advance for any help !