Bug 484541
| Summary: | Mounting an NFS file system causes denials, even when nfs_export_all_ro=on | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Murray McAllister <mmcallis> | ||||
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 10 | CC: | dwalsh, jkubin, mgrepl, vdanen | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2009-09-06 07:15:11 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: | |||||||
| Attachments: |
|
||||||
|
Description
Murray McAllister
2009-02-08 04:44:44 UTC
Created attachment 331224 [details] output from "sealert -l [id]" from comment #0 Same denials occur for subsequent mounts.
Same results when using public_content_t type for /export on server-side.
$ sesearch -C --allow -s nfsd_t -t tmpfs_t
[snip]
ET allow nfsd_t tmpfs_t : file { ioctl read getattr lock } ; [ nfs_export_all_ro ]
[snip]
The above looks like the Boolean should allow access for the first denial.
Miroslav, you need to add auth_read_all_dirs_except_shadow(nfsd_t) files_getattr_all_pipes(nfsd_t) files_getattr_all_sockets(nfsd_t) dev_getattr_all_blk_files(nfsd_t) dev_getattr_all_chr_files(nfsd_t) To nfs_export_all_ro and nfs_export_all_rw blocks in rpc.te Murray the tmpfs_t is complaining about reading the 'dir' not 'file'. Actually rw only needs dev_getattr_all_blk_files(nfsd_t) dev_getattr_all_chr_files(nfsd_t) Fixed in selinux-policy-3.5.13-45.fc10 verified in selinux-policy-3.5.13-46.fc10.noarch Thanks. |