Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374025 - sys-boot/plymouth-openrc-plugin should not check the writability of /run
Summary: sys-boot/plymouth-openrc-plugin should not check the writability of /run
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-04 10:03 UTC by Maciej Piechotka
Modified: 2011-07-11 12:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Piechotka 2011-07-04 10:03:24 UTC
Not every package manager pretends with root access. Therefore checking for writability of /run fails with lowered priviliges when permission is set to:

% ls /run -ld
drwxr-xr-x 19 root root 560 Jul  4 10:07 /run


% cave -v
paludis 0.64.1
Comment 1 Sergey Ilinykh 2011-07-05 04:27:09 UTC
I'd say it should not check even existence of this directory!
keepdir /run should be enough
Comment 2 SpanKY gentoo-dev 2011-07-08 19:05:43 UTC
random packages should not be touching /run

handling should be done at runtime, not build time
Comment 3 Amadeusz Żołnowski (RETIRED) gentoo-dev 2011-07-11 12:58:48 UTC
Fixed with 0.1.2.

OK, I'm doing just a check in postinst message if /run is not a directory.

At runtime plugin creates subdirectory "plymouth" under /run if one doesn't exist, but if /run is not present, it quits with error.