Bug 174156
Summary: | Cannot automount NFS directories with auto.net | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mogens Kjaer <mk> |
Component: | autofs | Assignee: | Jeff Moyer <jmoyer> |
Status: | CLOSED NOTABUG | QA Contact: | Brock Organ <borgan> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5 | CC: | michael, nphilipp |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-05-24 07:18:59 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Mogens Kjaer
2005-11-25 10:10:51 UTC
Argh, the reason for this was bug 174104, disabling selinux again solves this problem. Look in /var/log/messages and /var/log/audit/audit.log for AVC messages? These will tell what SELinux has a problem with. The only thing I know about selinux is how to disable it at installation... Anyway, here's what is logged: ... type=USER_START msg=audit(1132910666.073:24): user pid=2842 uid=0 auid=4294967295 msg='PAM: session open acct=mk : exe="/bin/su" (hostname=?, addr=?, terminal=pts/2 res=success)' type=CRED_ACQ msg=audit(1132910666.073:25): user pid=2842 uid=0 auid=4294967295 msg='PAM: setcred acct=mk : exe="/bin/su" (hostname=?, addr=?, terminal=pts/2 res=success)' type=AVC msg=audit(1132911614.986:26): avc: denied { search } for pid=3147 comm="mount" name="/" dev=rpc_pipefs ino=5473 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:rpc_pipefs_t:s0 tclass=dir type=SYSCALL msg=audit(1132911614.986:26): arch=40000003 syscall=21 success=no exit=-2 a0=8641f78 a1=8641f90 a2=8641fa8 a3=c0ed0006 items=1 pid=3147 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 comm="mount" exe="/bin/mount" type=CWD msg=audit(1132911614.986:26): cwd="/net" type=PATH msg=audit(1132911614.986:26): item=0 name="/net/server2/home" flags=1 inode=10178 dev=00:16 mode=040555 ouid=0 ogid=0 rdev=00:00 type=AVC msg=audit(1132911615.098:27): avc: denied { search } for pid=3149 comm="mount" name="/" dev=rpc_pipefs ino=5473 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:rpc_pipefs_t:s0 tclass=dir type=SYSCALL msg=audit(1132911615.098:27): arch=40000003 syscall=21 success=no exit=-2 a0=849ef78 a1=849ef98 a2=849efb8 a3=c0ed0006 items=1 pid=3149 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 comm="mount" exe="/bin/mount" type=CWD msg=audit(1132911615.098:27): cwd="/net" type=PATH msg=audit(1132911615.098:27): item=0 name="/net/server2/home/pcsupport" flags=1 inode=10210 dev=00:16 mode=040555 ouid=0 ogid=0 rdev=00:00 type=USER_AUTH msg=audit(1132912101.937:28): user pid=3196 uid=0 auid=4294967295 msg='PAM: authentication acct=root : exe="/usr/sbin/sshd" (hostname=mk.crc.dk, addr=172.20.2.11, terminal=ssh res=success)' ... Happens for me as well -- although I don't get any audit messages pertaining this issue. Trying to access an autofs share yields exactly this: Dec 5 16:19:30 ls3505 kernel: net/sunrpc/rpc_pipe.c: rpc_lookup_parent failed to find path /nfs/clnt2c Dec 5 16:19:30 ls3505 kernel: RPC: Couldn't create pipefs entry /nfs/clnt2c, error -2 Dec 5 16:19:30 ls3505 automount[4994]: >> mount: special device nsl01a:/vol/linuxlab does not exist Dec 5 16:19:30 ls3505 automount[4994]: mount(nfs): nfs: mount failure nsl01a:/vol/linuxlab on /misc/filer Dec 5 16:19:30 ls3505 automount[4994]: failed to mount /misc/filer "setenforce 0" works around the problem here as well. Changing to NEEDINFO_REPORTER from NEEDINFO. (In reply to comment #5) > Changing to NEEDINFO_REPORTER from NEEDINFO. What info is needed? see comment #2 for the requested information. It would be good to know if this is still a problem. No, the problem is fixed in FC5 with the all updates. |