pottzie

Untitled

Oct 6th, 2011
554
0
Never
11
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.82 KB | None | 0 0
  1. SELinux is preventing /opt/google/chrome/chrome from execmod access on the file /opt/google/chrome/chrome.
  2.  
  3. ***** Plugin allow_execmod (91.4 confidence) suggests **********************
  4.  
  5. If you want to allow chrome to have execmod access on the chrome file
  6. Then you need to change the label on '/opt/google/chrome/chrome'
  7. Do
  8. # semanage fcontext -a -t textrel_shlib_t '/opt/google/chrome/chrome'
  9. # restorecon -v '/opt/google/chrome/chrome'
  10.  
  11. ***** Plugin catchall (9.59 confidence) suggests ***************************
  12.  
  13. If you believe that chrome should be allowed execmod access on the chrome file by default.
  14. Then you should report this as a bug.
  15. You can generate a local policy module to allow this access.
  16. Do
  17. allow this access for now by executing:
  18. # grep chrome /var/log/audit/audit.log | audit2allow -M mypol
  19. # semodule -i mypol.pp
  20.  
  21. Additional Information:
  22. Source Context unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c
  23. 0.c1023
  24. Target Context system_u:object_r:execmem_exec_t:s0
  25. Target Objects /opt/google/chrome/chrome [ file ]
  26. Source chrome
  27. Source Path /opt/google/chrome/chrome
  28. Port <Unknown>
  29. Host kickass
  30. Source RPM Packages google-chrome-stable-14.0.835.202-103287
  31. Target RPM Packages google-chrome-stable-14.0.835.202-103287
  32. Policy RPM selinux-policy-3.9.7-44.fc14
  33. Selinux Enabled True
  34. Policy Type targeted
  35. Enforcing Mode Enforcing
  36. Host Name kickass
  37. Platform Linux kickass 2.6.35.14-96.fc14.i686 #1 SMP Thu
  38. Sep 1 12:49:38 UTC 2011 i686 i686
  39. Alert Count 7
  40. First Seen Thu 06 Oct 2011 12:44:27 AM EDT
  41. Last Seen Thu 06 Oct 2011 12:48:24 AM EDT
  42. Local ID dd043535-053b-4cc7-b8ff-fd0d95fa2582
  43.  
  44. Raw Audit Messages
  45. type=AVC msg=audit(1317876504.101:23068): avc: denied { execmod } for pid=2171 comm="chrome" path="/opt/google/chrome/chrome" dev=dm-0 ino=395897 scontext=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 tcontext=system_u:object_r:execmem_exec_t:s0 tclass=file
  46.  
  47.  
  48. type=SYSCALL msg=audit(1317876504.101:23068): arch=i386 syscall=mprotect success=no exit=EACCES a0=b45d7000 a1=31ff000 a2=5 a3=bf9cb440 items=0 ppid=0 pid=2171 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=chrome exe=/opt/google/chrome/chrome subj=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 key=(null)
  49.  
  50. Hash: chrome,chrome_sandbox_t,execmem_exec_t,file,execmod
  51.  
  52. audit2allow
  53.  
  54. #============= chrome_sandbox_t ==============
  55. allow chrome_sandbox_t execmem_exec_t:file execmod;
  56.  
  57. audit2allow -R
  58.  
  59. #============= chrome_sandbox_t ==============
  60. allow chrome_sandbox_t execmem_exec_t:file execmod;
  61.  
  62. And when I try to enter the code given by the SELinux trouble shooter:
  63.  
  64. [root@kickass larry]# semanage fcontext-a-ttextrel_shlib_t'/opt/google/chrome/chrome'
  65. /usr/sbin/semanage:
  66. semanage [ -S store ] -i [ input_file | - ]
  67. semanage [ -S store ] -o [ output_file | - ]
  68.  
  69. semanage login -{a|d|m|l|D|E} [-nrs] login_name | %groupname
  70. semanage user -{a|d|m|l|D|E} [-LnrRP] selinux_name
  71. semanage port -{a|d|m|l|D|E} [-nrt] [ -p proto ] port | port_range
  72. semanage interface -{a|d|m|l|D|E} [-nrt] interface_spec
  73. semanage module -{a|d|m} [--enable|--disable] module
  74. semanage node -{a|d|m|l|D|E} [-nrt] [ -p protocol ] [-M netmask] addr
  75. semanage fcontext -{a|d|m|l|D|E} [-efnrst] file_spec
  76. semanage boolean -{d|m} [--on|--off|-1|-0] -F boolean | boolean_file
  77. semanage permissive -{d|a|l} [-n] type
  78. semanage dontaudit [ on | off ]
  79.  
  80. Primary Options:
  81.  
  82. -a, --add Add a OBJECT record NAME
  83. -d, --delete Delete a OBJECT record NAME
  84. -m, --modify Modify a OBJECT record NAME
  85. -i, --input Input multiple semange commands in a transaction
  86. -o, --output Output current customizations as semange commands
  87. -l, --list List the OBJECTS
  88. -E, --extract extract customizable commands
  89. -C, --locallist List OBJECTS local customizations
  90. -D, --deleteall Remove all OBJECTS local customizations
  91.  
  92. -h, --help Display this message
  93. -n, --noheading Do not print heading when listing OBJECTS
  94. -S, --store Select and alternate SELinux store to manage
  95.  
  96. Object-specific Options (see above):
  97.  
  98. -f, --ftype File Type of OBJECT
  99. "" (all files)
  100. -- (regular file)
  101. -d (directory)
  102. -c (character device)
  103. -b (block device)
  104. -s (socket)
  105. -l (symbolic link)
  106. -p (named pipe)
  107.  
  108. -F, --file Treat target as an input file for command, change multiple settings
  109. -p, --proto Port protocol (tcp or udp) or internet protocol version of node (ipv4 or ipv6)
  110. -M, --mask Netmask
  111. -e, --equal Substitue source path for dest path when labeling
  112. -P, --prefix Prefix for home directory labeling
  113. -L, --level Default SELinux Level (MLS/MCS Systems only)
  114. -R, --roles SELinux Roles (ex: "sysadm_r staff_r")
  115. -s, --seuser SELinux User Name
  116. -t, --type SELinux Type for the object
  117. -r, --range MLS/MCS Security Range (MLS/MCS Systems only)
  118. --enable Enable a module
  119. --disable Disable a module
  120.  
  121. Requires 2 or more arguments
  122. [root@kickass larry]# semanage fcontext-a-t textrel_shlib_t'/opt/google/chrome/chrome'
  123. /usr/sbin/semanage:
  124. semanage [ -S store ] -i [ input_file | - ]
  125. semanage [ -S store ] -o [ output_file | - ]
  126.  
  127. semanage login -{a|d|m|l|D|E} [-nrs] login_name | %groupname
  128. semanage user -{a|d|m|l|D|E} [-LnrRP] selinux_name
  129. semanage port -{a|d|m|l|D|E} [-nrt] [ -p proto ] port | port_range
  130. semanage interface -{a|d|m|l|D|E} [-nrt] interface_spec
  131. semanage module -{a|d|m} [--enable|--disable] module
  132. semanage node -{a|d|m|l|D|E} [-nrt] [ -p protocol ] [-M netmask] addr
  133. semanage fcontext -{a|d|m|l|D|E} [-efnrst] file_spec
  134. semanage boolean -{d|m} [--on|--off|-1|-0] -F boolean | boolean_file
  135. semanage permissive -{d|a|l} [-n] type
  136. semanage dontaudit [ on | off ]
  137.  
  138. Primary Options:
  139.  
  140. -a, --add Add a OBJECT record NAME
  141. -d, --delete Delete a OBJECT record NAME
  142. -m, --modify Modify a OBJECT record NAME
  143. -i, --input Input multiple semange commands in a transaction
  144. -o, --output Output current customizations as semange commands
  145. -l, --list List the OBJECTS
  146. -E, --extract extract customizable commands
  147. -C, --locallist List OBJECTS local customizations
  148. -D, --deleteall Remove all OBJECTS local customizations
  149.  
  150. -h, --help Display this message
  151. -n, --noheading Do not print heading when listing OBJECTS
  152. -S, --store Select and alternate SELinux store to manage
  153.  
  154. Object-specific Options (see above):
  155.  
  156. -f, --ftype File Type of OBJECT
  157. "" (all files)
  158. -- (regular file)
  159. -d (directory)
  160. -c (character device)
  161. -b (block device)
  162. -s (socket)
  163. -l (symbolic link)
  164. -p (named pipe)
  165.  
  166. -F, --file Treat target as an input file for command, change multiple settings
  167. -p, --proto Port protocol (tcp or udp) or internet protocol version of node (ipv4 or ipv6)
  168. -M, --mask Netmask
  169. -e, --equal Substitue source path for dest path when labeling
  170. -P, --prefix Prefix for home directory labeling
  171. -L, --level Default SELinux Level (MLS/MCS Systems only)
  172. -R, --roles SELinux Roles (ex: "sysadm_r staff_r")
  173. -s, --seuser SELinux User Name
  174. -t, --type SELinux Type for the object
  175. -r, --range MLS/MCS Security Range (MLS/MCS Systems only)
  176. --enable Enable a module
  177. --disable Disable a module
  178.  
  179. Invalid parameter fcontext-a-t not defined
  180. [root@kickass larry]#
  181.  
  182.  
  183.  
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment