Bug 1058552 - [/usr/lib/tmpfiles.d/selinux-policy.conf:4] Write file requires argument.
Summary: [/usr/lib/tmpfiles.d/selinux-policy.conf:4] Write file requires argument.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-28 03:05 UTC by Peter Trenholme
Modified: 2014-07-01 00:23 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-28 13:41:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
dmesg output for comment 2 (62.07 KB, text/plain)
2014-01-28 13:19 UTC, Peter H. Jones
no flags Details
/var/log/messages for comment 2 (113.42 KB, text/plain)
2014-01-28 13:20 UTC, Peter H. Jones
no flags Details

Description Peter Trenholme 2014-01-28 03:05:14 UTC
Description of problem:
[/usr/lib/tmpfiles.d/selinux-policy.conf:4] Write file requires argument.

Version-Release number of selected component (if applicable):
Latest in rawhide

How reproducible:
Every boot

Steps to Reproduce:
1.Boot
2.
3.

Actual results:
$ sudo systemctl -l status systemd-tmpfiles-setup.service
systemd-tmpfiles-setup.service - Create Volatile Files and Directories
   Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-setup.service; static)
   Active: failed (Result: exit-code) since Tue 2014-01-28 02:51:12 PST; 7h left
     Docs: man:tmpfiles.d(5)
           man:systemd-tmpfiles(8)
  Process: 723 ExecStart=/usr/bin/systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev (code=exited, status=1/FAILURE)
 Main PID: 723 (code=exited, status=1/FAILURE)

Jan 28 02:51:12 trenholme systemd-tmpfiles[723]: [/usr/lib/tmpfiles.d/selinux-policy.conf:4] Write file requires argument.
Jan 28 02:51:12 trenholme systemd[1]: systemd-tmpfiles-setup.service: main process exited, code=exited, status=1/FAILURE
Jan 28 02:51:12 trenholme systemd[1]: Failed to start Create Volatile Files and Directories.
Jan 28 02:51:12 trenholme systemd[1]: Unit systemd-tmpfiles-setup.service entered failed state.

Expected results:
No failure

Additional info:
Seems a minor typo

Comment 1 Miroslav Grepl 2014-01-28 10:10:40 UTC
Are you getting AVC msgs?

Re-test and run

# ausearch -m avc,user_avc -ts recent

Comment 2 Peter H. Jones 2014-01-28 13:18:29 UTC
I have avc messages in dmesg and /var/log/messages booting Fedora-Live-Jam-KDE-x86_64-rawhide-20140127.iso
I edited my command line to:
"Command line: initrd=initrd0.img root=live:CDLABEL=Fedora-Live-Jam-KDE-x86_64-rawhi rootfstype=auto ro rd.live.image rd.luks=0 rd.md=0 rd.dm=0 nouveau.modeset=2 1 BOOT_IMAGE=vmlinuz0"

In other words, I removed quiet, threadirqs, rhgb and added nouveu.modeset=2 to help diagnose the dark screen I usually get. I started in mode 1, and hit CTRL-D in response to the request for the root password. Then, I could log in as root and collect dmesg outpout and /var/log/messages. A grep is below.

grep -i avc <dmesg-output> /var/log/messages
dmesg:[   38.053430] audit: type=1400 audit(1390894412.649:4): avc:  denied  { net_admin } for  pid=604 comm="systemd-tmpfile" capability=12  scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:system_r:systemd_tmpfiles_t:s0 tclass=capability
dmesg:[   46.440867] audit: type=1400 audit(1390894421.034:5): avc:  denied  { net_admin } for  pid=653 comm="systemd-tmpfile" capability=12  scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:system_r:systemd_tmpfiles_t:s0 tclass=capability
dmesg:[   46.901999] audit: type=1400 audit(1390894421.495:6): avc:  denied  { associate } for  pid=653 comm="systemd-tmpfile" name="uevent_helper" dev="sysfs" ino=557 scontext=system_u:object_r:usermodehelper_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=filesystem
dmesg:[  104.471574] audit: type=1400 audit(1390894479.046:7): avc:  denied  { net_admin } for  pid=829 comm="systemd-tmpfile" capability=12  scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:system_r:systemd_tmpfiles_t:s0 tclass=capability
dmesg:[  105.435036] audit: type=1400 audit(1390894480.009:8): avc:  denied  { net_admin } for  pid=847 comm="systemd-tmpfile" capability=12  scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:system_r:systemd_tmpfiles_t:s0 tclass=capability
dmesg:[  105.489192] audit: type=1400 audit(1390894480.063:9): avc:  denied  { associate } for  pid=847 comm="systemd-tmpfile" name="uevent_helper" dev="sysfs" ino=557 scontext=system_u:object_r:usermodehelper_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=filesystem
messages:Jan 28 02:34:56 localhost kernel: [   38.053430] audit: type=1400 audit(1390894412.649:4): avc:  denied  { net_admin } for  pid=604 comm="systemd-tmpfile" capability=12  scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:system_r:systemd_tmpfiles_t:s0 tclass=capability
messages:Jan 28 02:34:56 localhost kernel: [   46.440867] audit: type=1400 audit(1390894421.034:5): avc:  denied  { net_admin } for  pid=653 comm="systemd-tmpfile" capability=12  scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:system_r:systemd_tmpfiles_t:s0 tclass=capability
messages:Jan 28 02:34:56 localhost kernel: [   46.901999] audit: type=1400 audit(1390894421.495:6): avc:  denied  { associate } for  pid=653 comm="systemd-tmpfile" name="uevent_helper" dev="sysfs" ino=557 scontext=system_u:object_r:usermodehelper_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=filesystem
messages:Jan 28 02:34:56 localhost kernel: [  104.471574] audit: type=1400 audit(1390894479.046:7): avc:  denied  { net_admin } for  pid=829 comm="systemd-tmpfile" capability=12  scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:system_r:systemd_tmpfiles_t:s0 tclass=capability
messages:Jan 28 02:34:56 localhost kernel: [  105.435036] audit: type=1400 audit(1390894480.009:8): avc:  denied  { net_admin } for  pid=847 comm="systemd-tmpfile" capability=12  scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:system_r:systemd_tmpfiles_t:s0 tclass=capability
messages:Jan 28 02:34:56 localhost kernel: [  105.489192] audit: type=1400 audit(1390894480.063:9): avc:  denied  { associate } for  pid=847 comm="systemd-tmpfile" name="uevent_helper" dev="sysfs" ino=557 scontext=system_u:object_r:usermodehelper_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=filesystem

Comment 3 Peter H. Jones 2014-01-28 13:19:33 UTC
Created attachment 856589 [details]
dmesg output for comment 2

Comment 4 Peter H. Jones 2014-01-28 13:20:34 UTC
Created attachment 856590 [details]
/var/log/messages for comment 2

Comment 5 Miroslav Grepl 2014-01-28 13:41:28 UTC
It is going to be fixed in the next rawhide build.

Comment 6 Peter Trenholme 2014-07-01 00:23:41 UTC
The automated "you haven't replied" system keeps asking me to respond, so, since this is closed, here's a reply.


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