Bug 1869039 - systemd services fail with exfat volume mounted
Summary: systemd services fail with exfat volume mounted
Keywords:
Status: CLOSED DUPLICATE of bug 1874836
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-15 19:44 UTC by Jason Montleon
Modified: 2020-09-09 17:31 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-09-09 17:31:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jason Montleon 2020-08-15 19:44:44 UTC
This bug was initially created as a copy of Bug #1869028

I am copying this bug because: 
This same problem happens with systemd-timedated and systemd-hostnamed. I didn't even need to start the system with the drive attached to cause these to fail.

type=AVC msg=audit(1597520203.016:4706): avc:  denied  { remount } for  pid=13007 comm="(ostnamed)" scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem permissive=0
type=AVC msg=audit(1597520385.823:4727): avc:  denied  { remount } for  pid=13277 comm="(imedated)" scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem permissive=0

Description of problem:
cockpit fails with an exfat volume mounted

Version-Release number of selected component (if applicable):
cockpit-225-1.fc32.x86_64

How reproducible:
always

Steps to Reproduce:
1. Install Fedora 32 with cockpit
2. Mount an exfat volume under /mnt
3. Try to connect to cockpit

Actual results:
page is unavailable. Further investigation shows the service failed.

Expected results:
Cockpit works.

Additional info:
The errors are:
systemd[9510]: cockpit.service: Failed to set up mount namespacing: /run/systemd/unit-root/: Permission denied
systemd[9510]: cockpit.service: Failed at step NAMESPACE spawning /usr/libexec/cockpit-tls: Permission denied

# systemctl -t service | grep cockpit
● cockpit.service                                       loaded failed failed  Cockpit Web Service                                                          
# umount /mnt
# systemctl restart cockpit
# systemctl -t service | grep cockpit
  cockpit.service                                       loaded active running Cockpit Web Service                                                          
# mount /dev/sdi1 /mnt
# systemctl restart cockpit
# systemctl -t service | grep cockpit
● cockpit.service                                       loaded failed failed  Cockpit Web Service

Comment 1 Jason Montleon 2020-09-09 17:31:30 UTC

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


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