Bug 1329879 - SELinux is preventing plugin-containe from read, write access on the chr_file /dev/tty2.
Summary: SELinux is preventing plugin-containe from read, write access on the chr_file...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a932e11dc5fec430367a9b677a6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-24 08:58 UTC by Kohei Takahashi
Modified: 2016-04-25 08:44 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-25 08:44:42 UTC
Type: ---


Attachments (Terms of Use)

Description Kohei Takahashi 2016-04-24 08:58:28 UTC
Description of problem:
SELinux is preventing plugin-containe from read, write access on the chr_file /dev/tty2.

*****  Plugin mozplugger (99.1 confidence) suggests   ************************

If plugin パッケージを使用したいです
Then firefox プラグインで SELinux の制御を全てオフにする必要があります。
Do
# setsebool -P unconfined_mozilla_plugin_transition 0

*****  Plugin catchall (1.81 confidence) suggests   **************************

If plugin-containe に、 tty2 chr_file の read write アクセスがデフォルトで許可されるべきです。   
Then バグとして報告してください。 
ローカルのポリシーモジュールを生成すると、
 このアクセスを許可することができます。
Do
allow this access for now by executing:
# ausearch -c plugin-containe --raw | 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:tty_device_t:s0
Target Objects                /dev/tty2 [ chr_file ]
Source                        plugin-containe
Source Path                   plugin-containe
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-183.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.6.0-0.rc3.git2.1.fc25.x86_64 #1
                              SMP Fri Apr 15 15:29:44 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-04-23 17:01:32 JST
Last Seen                     2016-04-23 17:01:32 JST
Local ID                      2aa4cd45-9abd-4e99-a150-ad3acd91352b

Raw Audit Messages
type=AVC msg=audit(1461398492.344:1454): avc:  denied  { read write } for  pid=2809 comm="plugin-containe" path="/dev/tty2" dev="devtmpfs" ino=1043 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tty_device_t:s0 tclass=chr_file permissive=0


Hash: plugin-containe,mozilla_plugin_t,tty_device_t,chr_file,read,write

Version-Release number of selected component:
selinux-policy-3.13.1-183.fc25.noarch

Additional info:
reporter:       libreport-2.7.0
hashmarkername: setroubleshoot
kernel:         4.6.0-0.rc4.git1.1.fc25.x86_64
reproducible:   Not sure how to reproduce the problem
type:           libreport

Potential duplicate: bug 1309042

Comment 1 Lukas Vrabec 2016-04-25 08:44:42 UTC
*****  Plugin mozplugger (99.1 confidence) suggests   ************************

If plugin パッケージを使用したいです
Then firefox プラグインで SELinux の制御を全てオフにする必要があります。
Do
# setsebool -P unconfined_mozilla_plugin_transition 0


Note You need to log in before you can comment on or make changes to this bug.