Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 537168 - emerge changes permissions of /dev/null after multiple packages merge
Summary: emerge changes permissions of /dev/null after multiple packages merge
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-20 21:36 UTC by William L. Thomson Jr.
Modified: 2015-06-08 22:49 UTC (History)
0 users

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


Attachments
emerge output showing change to /dev/null permissions (emerge_dev_null.txt,4.66 KB, text/plain)
2015-01-20 21:38 UTC, William L. Thomson Jr.
Details
emerge --info (emerge_info.txt,2.91 KB, text/plain)
2015-01-20 21:39 UTC, William L. Thomson Jr.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William L. Thomson Jr. 2015-01-20 21:36:21 UTC
This is likely specific to me, and one system. I have built others of the same base image I used for this system. I also make binaries off this system, I run on others. I cannot explain why this is happening on just this one system.

Reproducible: Always

Steps to Reproduce:
chmod 666 /dev/null
emerge more than one package
ls -l /dev/null -> crw------- 1 root root 1, 3 Jan  4 11:14 /dev/null
Comment 1 William L. Thomson Jr. 2015-01-20 21:38:45 UTC
Created attachment 394430 [details]
emerge output showing change to /dev/null permissions
Comment 2 William L. Thomson Jr. 2015-01-20 21:39:21 UTC
Created attachment 394432 [details]
emerge --info
Comment 3 William L. Thomson Jr. 2015-06-08 22:49:22 UTC
Turns out this was syslog-ng of all things. I had a rule to send some log output to /dev/null. It seems if you use this in syslog-ng you need to set permissions on /dev/null, or syslog-ng will change the permissions on /dev/null to something you do not want.

destination dev_null { file("/dev/null" perm(0666)); };

Really should be a default or something in syslog-ng, but then it would have to look out for /dev/null in any file() and adjust permissions accordingly. That might be ideal, but not sure its practical, and not making such a suggestion to upstream.