Bug 636232 - plymouth shutdown/reboot splash does not display.
Summary: plymouth shutdown/reboot splash does not display.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-21 17:39 UTC by Steven Haigh
Modified: 2010-10-05 09:35 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.7.19-62.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-05 09:35:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
output of 'grep avc: /var/log/messages' (5.27 KB, text/plain)
2010-09-22 14:26 UTC, Steven Haigh
no flags Details
output of 'grep avc: /var/log/messages' with mmap_low_allowed 0 (5.30 KB, text/plain)
2010-09-22 14:42 UTC, Steven Haigh
no flags Details
output of 'grep ply /var/log/audit/audit.log' (2.31 KB, text/plain)
2010-09-22 15:11 UTC, Steven Haigh
no flags Details
Output of 'grep avc /var/log/audit/audit.log | audit2allow' (6.84 KB, text/plain)
2010-09-22 15:39 UTC, Steven Haigh
no flags Details
output of 'grep shutdown_t /var/log/audit/audit.log' (23.60 KB, text/plain)
2010-09-23 02:33 UTC, Steven Haigh
no flags Details

Description Steven Haigh 2010-09-21 17:39:36 UTC
Description of problem:
F13 with all updates & updates-testing enabled. Plymouth startup splash works ok, but reboot/shutdown splashes do not display.

Version-Release number of selected component (if applicable):
plymouth-theme-charge-0.8.2-3.fc13.i686
plymouth-plugin-label-0.8.2-3.fc13.i686
plymouth-plugin-two-step-0.8.2-3.fc13.i686
plymouth-gdm-hooks-0.8.2-3.fc13.i686
plymouth-scripts-0.8.2-3.fc13.i686
plymouth-utils-0.8.2-3.fc13.i686
plymouth-0.8.2-3.fc13.i686
plymouth-graphics-libs-0.8.2-3.fc13.i686
plymouth-core-libs-0.8.2-3.fc13.i686
plymouth-system-theme-0.8.2-3.fc13.i686
gdm-2.30.2-1.fc13.i686
kernel-PAE-2.6.34.7-56.fc13.i686

How reproducible:
Every boot.

Steps to Reproduce:
1. Install F13 on an Asus EeePC 1005P
2. Install all updates with updates-testing enabled.
3. Reboot.
  
Actual results:
Plymouth splash screen is only shown on startup, not reboot and shutdown as expected.

Comment 1 Steven Haigh 2010-09-21 18:10:26 UTC
This seems to be related to selinux.

After rebooting with selinux=disabled in /etc/sysconfig/selinux, the plymouth screens work perfectly on startup, reboot and shutdown.

To test, I re-enabled selinux, waited for it to relabel the filesystem, then rebooted again and the shutdown/reboot screens didn't work. Disabling selinux again, and presto, everything was back to how it should be.

Installed selinux packages:
libselinux-2.0.94-2.fc13.i686
libselinux-python-2.0.94-2.fc13.i686
libselinux-utils-2.0.94-2.fc13.i686
selinux-policy-3.7.19-57.fc13.noarch
selinux-policy-targeted-3.7.19-57.fc13.noarch

Comment 2 Steven Haigh 2010-09-22 13:52:51 UTC
This may be helpful:

Sep 22 23:40:14 eeepc kernel: type=1400 audit(1285162802.009:4): avc: denied { mmap_zero } for pid=457 comm="vbetool" scontext=system_u:system_r:vbetool_t:s0-s0:c0.c1023 tcontext=system_u:system_r:vbetool_t:s0-s0:c0.c1023 tclass=memprotect

Was caused by:
The boolean mmap_low_allowed was set incorrectly.

Description:
Allow certain domains to map low memory in the kernel

Allow access by executing:
setsebool -P mmap_low_allowed 1

Comment 3 Daniel Walsh 2010-09-22 14:07:30 UTC
Steven you can put the machine into permissive mode and see if it shuts down with the splash screen.  I would hope it is not the vbetool causing this.

It could be a dontaudit rule.

# semodule -DB
# setenforce 0
# reboot

Will turn off the dontaudit rules.

# semodule -B 
turns them back on.

Then look for bugs related to plymouth.  One problem is that these bugs might not end up in a log file.

Comment 4 Steven Haigh 2010-09-22 14:16:25 UTC
I ran 'setsebool -P mmap_low_allowed 1' however the issue still occured. I have put 'SELINUX=permissive' in /etc/sysconfig/selinux to debug.

Will take the steps above to see what I can find.

Comment 5 Steven Haigh 2010-09-22 14:26:28 UTC
Created attachment 448948 [details]
output of 'grep avc: /var/log/messages'

Ran the above commands - here is the output of 'grep avc: /var/log/messages'

The reboot/shutdown screens work as expected in permissive mode (as you'd expect).

Comment 6 Steven Haigh 2010-09-22 14:42:55 UTC
Created attachment 448950 [details]
output of 'grep avc: /var/log/messages' with mmap_low_allowed 0

Rebooted a couple of times after setting mmap_low_allowed back to 0 (the default). This is the output of 'grep avc: /var/log/messages'.

Comment 7 Daniel Walsh 2010-09-22 15:00:21 UTC
Nothing there that would cause the error.

Could you try to put the machine back into enforcing mode and then add

# setenforce 1
# semanage permissive -a plymouthd_t
# reboot

Then see if the screen pops up.

Also could you check in /var/log/audit/audit.log for avc messages.

Comment 8 Steven Haigh 2010-09-22 15:11:57 UTC
Created attachment 448957 [details]
output of 'grep ply /var/log/audit/audit.log'

Ah ha. audit.log does contain references for plymouthd. Interpreting these is beyond me however :)

Comment 9 Steven Haigh 2010-09-22 15:24:02 UTC
After running these two commands, the shutdown/reboot screens do not display:

# setenforce 1
# semanage permissive -a plymouthd_t

I tried 2-3 reboots, no shutdown/startup splash each time.

Comment 10 Steven Haigh 2010-09-22 15:28:24 UTC
Sorry - typo. The above should read:

I tried 2-3 reboots, no shutdown/*reboot* splash each time.

Comment 11 Daniel Walsh 2010-09-22 15:35:37 UTC
grep avc /var/log/audit/audit.log | audit2allow

And attach the output.

Comment 12 Steven Haigh 2010-09-22 15:39:54 UTC
Created attachment 448969 [details]
Output of 'grep avc /var/log/audit/audit.log | audit2allow'

Comment 13 Daniel Walsh 2010-09-22 15:52:44 UTC
It looks like it could be shutdown causing the bug.

# semanage permissive -a shutdown_t

And see if it comes up.

Comment 14 Steven Haigh 2010-09-22 16:08:52 UTC
Yay! After running 'semanage permissive -a shutdown_t', I now get both shutdown & reboot splash screens with enforcing mode set.

This makes me wonder. Is it an selinux policy issue or a shutdown issue? :)

Comment 15 Daniel Walsh 2010-09-22 20:21:45 UTC
Ok did you find anything else in the logs about shutdown_t?

grep shutdown_t /var/log/audit/audit.log
grep shutdown_t /var/log/messages
dmesg | grep shutdown_t

Comment 16 Steven Haigh 2010-09-23 02:33:59 UTC
Created attachment 449081 [details]
output of 'grep shutdown_t /var/log/audit/audit.log'

Added output of 'grep shutdown_t /var/log/audit/audit.log'.

There were no matches to the other two commands.

Comment 17 Daniel Walsh 2010-09-23 13:23:10 UTC
Make sure  you turn off the dontaudit rules.

# semodule -B

Miroslav add

allow shutdown_t initrc_var_run_t:file write;
allow shutdown_t var_log_t:dir search;

Steven you can add these rules for now by executing

# grep shutdown_t /var/log/audit/audit.log | audit2allow -M myshutdown
# semodule -i myshutdown.pp

Then you can attempt to remove the permissive domain.

# semanage permissive -d shutdown_t

If it still works then those allow rules are what we needed to add.

Comment 18 Steven Haigh 2010-09-23 13:59:22 UTC
Hi Daniel,

I ran:

# semodule -B
# grep shutdown_t /var/log/audit/audit.log | audit2allow -M myshutdown
# semodule -i myshutdown.pp
# semanage permissive -d shutdown_t

The shutdown / reboot splash screens still work as expected. Does this mean these rules will need to be added to the default selinux policy?

Comment 19 Daniel Walsh 2010-09-23 19:16:45 UTC
Yes

Comment 20 Miroslav Grepl 2010-09-24 12:24:34 UTC
Fixed in selinux-policy-3.7.19-61.fc13

Comment 21 Fedora Update System 2010-09-24 13:58:25 UTC
selinux-policy-3.7.19-62.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/selinux-policy-3.7.19-62.fc13

Comment 22 Steven Haigh 2010-09-25 05:44:51 UTC
I can verify that this is fixed in selinux-policy-3.7.19-62.fc13.

Comment 23 Daniel Walsh 2010-09-25 10:19:07 UTC
Please update karma

Comment 24 Steven Haigh 2010-09-25 10:51:23 UTC
Already have. I was the first +1 :)

Comment 25 Fedora Update System 2010-09-26 04:32:25 UTC
selinux-policy-3.7.19-62.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.7.19-62.fc13

Comment 26 Fedora Update System 2010-10-05 09:35:16 UTC
selinux-policy-3.7.19-62.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


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