selinux 정책문제입니다 도와주세요
SELinux is preventing plugin-containe from execmod access on the file /usr/lib/mozilla/plugins/libnProtectNetizen.so.
***** Plugin allow_execmod (91.4 confidence) suggests **********************
If you want to allow plugin-containe to have execmod access on the libnProtectNetizen.so file
Then you need to change the label on '/usr/lib/mozilla/plugins/libnProtectNetizen.so'
Do
# semanage fcontext -a -t textrel_shlib_t '/usr/lib/mozilla/plugins/libnProtectNetizen.so'
# restorecon -v '/usr/lib/mozilla/plugins/libnProtectNetizen.so'
***** Plugin catchall (9.59 confidence) suggests ***************************
If you believe that plugin-containe should be allowed execmod access on the libnProtectNetizen.so 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 plugin-containe /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp
Additional Information:
Source Context unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
0.c1023
Target Context system_u:object_r:lib_t:s0
Target Objects /usr/lib/mozilla/plugins/libnProtectNetizen.so [
file ]
Source plugin-containe
Source Path plugin-containe
Port
Host pj.localdomain
Source RPM Packages
Target RPM Packages linux-Netizen-SLM-1.0.3-1.i386
Policy RPM selinux-policy-3.10.0-121.fc17.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name pj.localdomain
Platform Linux pj.localdomain 3.3.4-5.fc17.i686.PAE #1 SMP
Mon May 7 17:37:39 UTC 2012 i686 i686
Alert Count 7
First Seen Thu 13 Jun 2013 10:44:24 PM KST
Last Seen Thu 13 Jun 2013 10:58:49 PM KST
Local ID 84e77423-8fa3-4d32-a6a9-a618b9b84e02
Raw Audit Messages
type=AVC msg=audit(1371131929.354:84): avc: denied { execmod } for pid=1601 comm="plugin-containe" path="/usr/lib/mozilla/plugins/libnProtectNetizen.so" dev="dm-1" ino=944181 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file
Hash: plugin-containe,mozilla_plugin_t,lib_t,file,execmod
audit2allowunable to open /sys/fs/selinux/policy: Permission denied
audit2allow -Runable to open /sys/fs/selinux/policy: Permission denied
위에 메시지중에 주석내용인 restorecon 명령을
위에 메시지중에 주석내용인 restorecon 명령을 해봐도 /usr/lib/mozilla/plugins/libnProtectNetizen.so 동작이 제대로 못하고 있네요...
살려주세요...
\(´∇`)ノ.大韓兒 朴鐘緖人
/usr/lib/mozilla/plugins/libn
/usr/lib/mozilla/plugins/libnProtectNetizen.so 파일의 보안 콘텍스트가 lib_t면 될 것 같은데요.
ls -Z /usr/lib/mozilla/plugins/libnProtectNetizen.so
해보면 알 수 있습니다. 보안 콘텍스트가 뭐라고 되어 있나요?
----
academic은 제 고등학교 때 동아리 이름입니다.
academic, 아주 가끔은 저도 이랬으면 좋겠습니다.
댓글 달기