Bug 1123322 - SELinux is preventing /usr/sbin/cryptsetup from read access on the socket Unknown.
Summary: SELinux is preventing /usr/sbin/cryptsetup from read access on the socket Unk...
Keywords:
Status: CLOSED DUPLICATE of bug 1123321
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-25 10:15 UTC by Ritesh Khadgaray
Modified: 2014-07-25 11:22 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-07-25 11:22:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ritesh Khadgaray 2014-07-25 10:15:29 UTC
Description of problem:

SELinux is preventing /usr/sbin/cryptsetup from read access on the socket Unknown.

*****  Plugin file (47.5 confidence) suggests   ******************************

If you think this is caused by a badly mislabeled machine.
Then you need to fully relabel.
Do
touch /.autorelabel; reboot

*****  Plugin file (47.5 confidence) suggests   ******************************

If you think this is caused by a badly mislabeled machine.
Then you need to fully relabel.
Do
touch /.autorelabel; reboot

*****  Plugin catchall (6.38 confidence) suggests   **************************

If you believe that cryptsetup should be allowed read access on the Unknown socket 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 cryptsetup /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:lvm_t:s0
Target Context                system_u:object_r:unlabeled_t:s0
Target Objects                Unknown [ socket ]
Source                        cryptsetup
Source Path                   /usr/sbin/cryptsetup
Port                          <Unknown>
Host                          x230t.local
Source RPM Packages           cryptsetup-1.6.5-2.fc21.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-64.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     x230t.local
Platform                      Linux x230t.local 3.16.0-0.rc5.git1.1.fc21.x86_64
                              #1 SMP Wed Jul 16 18:48:51 UTC 2014 x86_64 x86_64
Alert Count                   2
First Seen                    2014-07-11 19:18:04 IST
Last Seen                     2014-07-25 15:30:57 IST
Local ID                      121c29ac-53ea-429e-a17d-2749f6675073

Raw Audit Messages
type=AVC msg=audit(1406282457.528:708): avc:  denied  { read } for  pid=26602 comm="cryptsetup" scontext=system_u:system_r:lvm_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=socket permissive=1


type=SYSCALL msg=audit(1406282457.528:708): arch=x86_64 syscall=read success=yes exit=512 a0=7 a1=24ed1b8 a2=200 a3=5db items=0 ppid=1550 pid=26602 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=cryptsetup exe=/usr/sbin/cryptsetup subj=system_u:system_r:lvm_t:s0 key=(null)

Hash: cryptsetup,lvm_t,unlabeled_t,socket,read

Comment 1 Lukas Vrabec 2014-07-25 11:22:44 UTC

*** This bug has been marked as a duplicate of bug 1123321 ***


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