TheEighth

selinux

May 9th, 2012
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. SELinux is preventing wicd from setattr access on the file /etc/wicd/manager-settings.conf.
  2.  
  3. ***** Plugin restorecon (94.8 confidence) suggests *************************
  4.  
  5. If you want to fix the label.
  6. /etc/wicd/manager-settings.conf default label should be NetworkManager_var_lib_t.
  7. Then you can run restorecon.
  8. Do
  9. # /sbin/restorecon -v /etc/wicd/manager-settings.conf
  10.  
  11. ***** Plugin catchall_labels (5.21 confidence) suggests ********************
  12.  
  13. If you want to allow wicd to have setattr access on the manager-settings.conf file
  14. Then you need to change the label on /etc/wicd/manager-settings.conf
  15. Do
  16. # semanage fcontext -a -t FILE_TYPE '/etc/wicd/manager-settings.conf'
  17. where FILE_TYPE is one of the following: net_conf_t, pppd_var_run_t, named_cache_t, NetworkManager_etc_rw_t, NetworkManager_tmp_t, NetworkManager_log_t, NetworkManager_var_lib_t, NetworkManager_var_run_t, root_t.
  18. Then execute:
  19. restorecon -v '/etc/wicd/manager-settings.conf'
  20.  
  21.  
  22. ***** Plugin catchall (1.44 confidence) suggests ***************************
  23.  
  24. If you believe that wicd should be allowed setattr access on the manager-settings.conf file by default.
  25. Then you should report this as a bug.
  26. You can generate a local policy module to allow this access.
  27. Do
  28. allow this access for now by executing:
  29. # grep wicd /var/log/audit/audit.log | audit2allow -M mypol
  30. # semodule -i mypol.pp
  31.  
  32. Additional Information:
  33. Source Context system_u:system_r:NetworkManager_t:s0
  34. Target Context unconfined_u:object_r:etc_t:s0
  35. Target Objects /etc/wicd/manager-settings.conf [ file ]
  36. Source wicd
  37. Source Path wicd
  38. Port <Unknown>
  39. Host tekk.local
  40. Source RPM Packages
  41. Target RPM Packages
  42. Policy RPM selinux-policy-3.10.0-84.fc16.noarch
  43. Selinux Enabled True
  44. Policy Type targeted
  45. Enforcing Mode Permissive
  46. Host Name tekk.local
  47. Platform Linux tekk.local 3.3.4-3.fc16.i686.PAE #1 SMP Thu
  48. May 3 14:54:14 UTC 2012 i686 i686
  49. Alert Count 1
  50. First Seen Thu 10 May 2012 08:28:23 AM MSK
  51. Last Seen Thu 10 May 2012 08:28:23 AM MSK
  52. Local ID f95a2b06-e5f9-429e-be39-383bd6e8d841
  53.  
  54. Raw Audit Messages
  55. type=AVC msg=audit(1336624103.876:31): avc: denied { setattr } for pid=964 comm="wicd" name="manager-settings.conf" dev="dm-1" ino=918385 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:object_r:etc_t:s0 tclass=file
  56.  
  57.  
  58. Hash: wicd,NetworkManager_t,etc_t,file,setattr
  59.  
  60. audit2allow
  61.  
  62. #============= NetworkManager_t ==============
  63. allow NetworkManager_t etc_t:file setattr;
  64.  
  65. audit2allow -R
  66.  
  67. #============= NetworkManager_t ==============
  68. allow NetworkManager_t etc_t:file setattr;
Advertisement
Add Comment
Please, Sign In to add comment