Bug 701451 - SELinux is preventing /bin/login from 'read' accesses on the lnk_file .ecryptfs.
Summary: SELinux is preventing /bin/login from 'read' accesses on the lnk_file .ecryptfs.
Keywords:
Status: CLOSED DUPLICATE of bug 712048
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:6fb399b18e8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-02 21:19 UTC by Jayson Reis
Modified: 2011-11-23 22:41 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-23 22:41:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
auesearch (3.60 KB, text/plain)
2011-05-03 12:25 UTC, Jayson Reis
no flags Details
id -Z (54 bytes, text/plain)
2011-05-03 12:25 UTC, Jayson Reis
no flags Details
ausearch with login error (14.38 KB, text/plain)
2011-05-03 12:29 UTC, Jayson Reis
no flags Details

Description Jayson Reis 2011-05-02 21:19:51 UTC
I already did touch /.autorelabel and it relabeled all my system and this still happening. Is it a bug ?

SELinux is preventing /bin/login from 'read' accesses on the lnk_file .ecryptfs.

*****  Plugin catchall (100. confidence) suggests  ***************************

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

Additional Information:
Source Context                system_u:system_r:local_login_t:s0-s0:c0.c1023
Target Context                system_u:object_r:ecryptfs_t:s0
Target Objects                .ecryptfs [ lnk_file ]
Source                        login
Source Path                   /bin/login
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           util-linux-2.19-4.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-18.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.4-20.fc15.x86_64 #1 SMP
                              Thu Apr 28 23:32:48 UTC 2011 x86_64 x86_64
Alert Count                   7
First Seen                    Mon 02 May 2011 06:05:22 PM BRT
Last Seen                     Mon 02 May 2011 06:17:02 PM BRT
Local ID                      3d2c5160-f746-483b-b4e4-695ce05fa456

Raw Audit Messages
type=AVC msg=audit(1304371022.695:62): avc:  denied  { read } for  pid=1523 comm="login" name=".ecryptfs" dev=ecryptfs ino=16777225 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:ecryptfs_t:s0 tclass=lnk_file


type=SYSCALL msg=audit(1304371022.695:62): arch=x86_64 syscall=stat success=no exit=EACCES a0=b5ad80 a1=7fffac82e1a0 a2=7fffac82e1a0 a3=732e657461766972 items=0 ppid=1 pid=1523 auid=1000 uid=0 gid=1000 euid=0 suid=0 fsuid=0 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=1 comm=login exe=/bin/login subj=system_u:system_r:local_login_t:s0-s0:c0.c1023 key=(null)

Hash: login,local_login_t,ecryptfs_t,lnk_file,read

audit2allow

#============= local_login_t ==============
allow local_login_t ecryptfs_t:lnk_file read;

audit2allow -R

#============= local_login_t ==============
allow local_login_t ecryptfs_t:lnk_file read;

Comment 1 Miroslav Grepl 2011-05-03 07:44:16 UTC
Could you boot with parameter 

enforcing=0

and then give me output of

# ausearch -m avc -ts recent

# id -Z

Comment 2 Jayson Reis 2011-05-03 12:25:33 UTC
Created attachment 496510 [details]
auesearch

Comment 3 Jayson Reis 2011-05-03 12:25:53 UTC
Created attachment 496511 [details]
id -Z

Comment 4 Jayson Reis 2011-05-03 12:29:39 UTC
Created attachment 496513 [details]
ausearch with login error

Comment 5 Miroslav Grepl 2011-05-05 11:03:22 UTC
Thank you. Does eCryptfs work for you in permissive mode?

Comment 6 Jayson Reis 2011-05-05 12:17:50 UTC
What do you mean by permissive mode?

Comment 7 Miroslav Grepl 2011-05-05 12:26:03 UTC
(In reply to comment #1)
> Could you boot with parameter 
> 
> enforcing=0

It means you did boot in permissive mode.

Comment 8 Miroslav Grepl 2011-11-23 22:41:56 UTC

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


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