| Summary: | SELinux is preventing /sbin/hwclock from 'append' accesses on the file /var/webmin/miniserv.error. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mike Osburn <mgosburn> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:f6180d4c65ef87360976ac27acd79624dab1709da8582d1b2a918e8e6e0660c9 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-09 10:59:53 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
You will need to fix labeling using the restorecon tool $ restorecon -R -v /var/webmin I just checked in a fix to make sure /var/webmin gets created with the correct label if a unconfined user creates it. |
libreport version: 2.0.8 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.2.9-1.fc16.x86_64 reason: SELinux is preventing /sbin/hwclock from 'append' accesses on the file /var/webmin/miniserv.error. time: Thu 08 Mar 2012 11:43:48 PM EST description: :SELinux is preventing /sbin/hwclock from 'append' accesses on the file /var/webmin/miniserv.error. : :***** Plugin restorecon (93.9 confidence) suggests ************************* : :If you want to fix the label. :/var/webmin/miniserv.error default label should be var_log_t. :Then you can run restorecon. :Do :# /sbin/restorecon -v /var/webmin/miniserv.error : :***** Plugin catchall_labels (5.17 confidence) suggests ******************** : :If you want to allow hwclock to have append access on the miniserv.error file :Then you need to change the label on /var/webmin/miniserv.error :Do :# semanage fcontext -a -t FILE_TYPE '/var/webmin/miniserv.error' :where FILE_TYPE is one of the following: logfile, user_tmp_t, sosreport_tmp_t, abrt_var_cache_t, rpm_tmp_t, user_home_t, apmd_log_t, adjtime_t, logfile, hwclock_t, admin_home_t, user_cron_spool_t, puppet_tmp_t. :Then execute: :restorecon -v '/var/webmin/miniserv.error' : : :***** Plugin catchall (1.43 confidence) suggests *************************** : :If you believe that hwclock should be allowed append access on the miniserv.error 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 hwclock /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :***** Plugin leaks (1.43 confidence) suggests ****************************** : :If you want to ignore hwclock trying to append access the miniserv.error file, because you believe it should not need this access. :Then you should report this as a bug. :You can generate a local policy module to dontaudit this access. :Do :# grep /sbin/hwclock /var/log/audit/audit.log | audit2allow -D -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:hwclock_t:s0 :Target Context system_u:object_r:var_t:s0 :Target Objects /var/webmin/miniserv.error [ file ] :Source hwclock :Source Path /sbin/hwclock :Port <Unknown> :Host (removed) :Source RPM Packages util-linux-2.20.1-2.2.fc16.x86_64 :Target RPM Packages :Policy RPM selinux-policy-3.10.0-75.fc16.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.2.7-1.fc16.x86_64 #1 : SMP Tue Feb 21 01:40:47 UTC 2012 x86_64 x86_64 :Alert Count 6 :First Seen Tue 28 Feb 2012 06:36:00 PM EST :Last Seen Tue 28 Feb 2012 06:38:27 PM EST :Local ID 70345f7d-fdab-427e-b727-5e2a8616149d : :Raw Audit Messages :type=AVC msg=audit(1330472307.280:89): avc: denied { append } for pid=3837 comm="hwclock" path="/var/webmin/miniserv.error" dev=dm-1 ino=399021 scontext=system_u:system_r:hwclock_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=file : : :type=SYSCALL msg=audit(1330472307.280:89): arch=x86_64 syscall=execve success=yes exit=0 a0=7fffd1b234f1 a1=21a6ab0 a2=20c84c0 a3=8 items=0 ppid=3836 pid=3837 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=hwclock exe=/sbin/hwclock subj=system_u:system_r:hwclock_t:s0 key=(null) : :Hash: hwclock,hwclock_t,var_t,file,append : :audit2allow : :#============= hwclock_t ============== :allow hwclock_t var_t:file append; : :audit2allow -R : :#============= hwclock_t ============== :allow hwclock_t var_t:file append; :