libreport version: 2.0.10 executable: /usr/bin/python2.7 hashmarkername: setroubleshoot kernel: 3.4.9-1.fc16.x86_64 time: Wed 22 Aug 2012 03:01:28 PM CEST description: :SELinux is preventing /sbin/setfiles from 'relabelto' accesses on the file /.config/Trolltech.conf. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that setfiles should be allowed relabelto access on the Trolltech.conf 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:chronyd_t:s0 :Target Objects /.config/Trolltech.conf [ file ] :Source restorecon :Source Path /sbin/setfiles :Port <Unknown> :Host (removed) :Source RPM Packages policycoreutils-2.1.4-13.fc16.x86_64 :Target RPM Packages :Policy RPM selinux-policy-3.10.0-90.fc16.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.4.9-1.fc16.x86_64 #1 SMP : Wed Aug 15 20:45:23 UTC 2012 x86_64 x86_64 :Alert Count 3 :First Seen Wed 22 Aug 2012 02:58:29 PM CEST :Last Seen Wed 22 Aug 2012 03:00:09 PM CEST :Local ID a7733974-9a16-4509-8539-3301d4591930 : :Raw Audit Messages :type=AVC msg=audit(1345640409.776:143): avc: denied { relabelto } for pid=4074 comm="restorecon" name="Trolltech.conf" dev="dm-1" ino=1572866 scontext=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 tcontext=system_u:object_r:chronyd_t:s0 tclass=file : : :type=SYSCALL msg=audit(1345640409.776:143): arch=x86_64 syscall=lsetxattr success=no exit=EACCES a0=7f3339f353c0 a1=7f333850c46b a2=7f3339ef4010 a3=1f items=1 ppid=3967 pid=4074 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts4 ses=2 comm=restorecon exe=/sbin/setfiles subj=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 key=(null) : :type=CWD msg=audit(1345640409.776:143): cwd=/root : :type=PATH msg=audit(1345640409.776:143): item=0 name=/.config/Trolltech.conf inode=1572866 dev=fd:01 mode=0100666 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:default_t:s0 : :Hash: restorecon,setfiles_t,chronyd_t,file,relabelto : :audit2allow : :#============= setfiles_t ============== :allow setfiles_t chronyd_t:file relabelto; : :audit2allow -R : :#============= setfiles_t ============== :allow setfiles_t chronyd_t:file relabelto; :
Are you trying to setup domain type for Trolltech.conf which is wrong? Just use restorecon -Rv PATHO/Trolltech.conf to fix labeling.
(In reply to comment #1) > Are you trying to setup domain type for Trolltech.conf which is wrong? > > Just use restorecon -Rv PATHO/Trolltech.conf to fix labeling. I tried that, but I got the following: # restorecon -Rv /.config/Trolltech.conf restorecon reset /.config/Trolltech.conf context system_u:object_r:default_t:s0->system_u:object_r:chronyd_t:s0 restorecon set context /.config/Trolltech.conf->system_u:object_r:chronyd_t:s0 failed:'Permission denied'
Ok, what does # semanage fcontext -l |grep chrony
(In reply to comment #3) > Ok, what does > > # semanage fcontext -l |grep chrony /.config/Trolltech.conf all files system_u:object_r:chronyd_t:s0 /etc/chrony\.keys regular file system_u:object_r:chronyd_keys_t:s0 /etc/rc\.d/init\.d/chronyd regular file system_u:object_r:chronyd_initrc_exec_t:s0 /lib/systemd/system/chronyd.* regular file system_u:object_r:chronyd_unit_file_t:s0 /usr/sbin/chronyd regular file system_u:object_r:chronyd_exec_t:s0 /var/lib/chrony(/.*)? all files system_u:object_r:chronyd_var_lib_t:s0 /var/log/chrony(/.*)? all files system_u:object_r:chronyd_var_log_t:s0 /var/run/chronyd(/.*) all files system_u:object_r:chronyd_var_run_t:s0 /var/run/chronyd\.pid regular file system_u:object_r:chronyd_var_run_t:s0 /var/run/chronyd\.sock all files system_u:object_r:chronyd_var_run_t:s0
OK, this is a problem /.config/Trolltech.conf Execute # semanage fcontext -d -t chronyd_t "/.config/Trolltech.conf" Also /.config is KDE bug. Try to remove this directory.
(In reply to comment #5) > OK, this is a problem > > /.config/Trolltech.conf > > Execute > > # semanage fcontext -d -t chronyd_t "/.config/Trolltech.conf" > > Also > > /.config > > is KDE bug. Try to remove this directory. Great, thank you, seems it is OK now :)