Hide Forgot
SELinux is preventing /sbin/setfiles from 'relabelto' accesses on the arquivo /var/webmin/sessiondb.pag. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that setfiles should be allowed relabelto access on the sessiondb.pag file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep restorecon /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c102 3 Target Context system_u:object_r:consoletype_t:s0 Target Objects /var/webmin/sessiondb.pag [ file ] Source restorecon Source Path /sbin/setfiles Port <Desconhecido> Host (removed) Source RPM Packages policycoreutils-2.0.85-28.fc14 Target RPM Packages Policy RPM selinux-policy-3.9.7-37.fc14 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.35.12-88.fc14.i686 #1 SMP Thu Mar 31 22:12:38 UTC 2011 i686 i686 Alert Count 1 First Seen Seg 18 Abr 2011 11:46:57 BRT Last Seen Seg 18 Abr 2011 11:46:57 BRT Local ID ed41dc10-d3ee-44de-92ad-25a7de3e42df Raw Audit Messages type=AVC msg=audit(1303138017.207:41856): avc: denied { relabelto } for pid=8529 comm="restorecon" name="sessiondb.pag" dev=sda4 ino=1845270 scontext=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 tcontext=system_u:object_r:consoletype_t:s0 tclass=file type=SYSCALL msg=audit(1303138017.207:41856): arch=i386 syscall=lsetxattr success=no exit=EACCES a0=b76d4070 a1=934023 a2=b763a7f8 a3=23 items=0 ppid=4451 pid=8529 auid=501 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm=restorecon exe=/sbin/setfiles subj=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 key=(null) Hash: restorecon,setfiles_t,consoletype_t,file,relabelto audit2allow #============= setfiles_t ============== allow setfiles_t consoletype_t:file relabelto; audit2allow -R #============= setfiles_t ============== allow setfiles_t consoletype_t:file relabelto;
Did you add a label for /var/webmin/sessiondb.pag to be labeled consoletype_t? This is wrong. consoletype_t is a process label not a file label. semanage fcontext -l | grep consoletype