Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598934 - Ease build.log permissions
Summary: Ease build.log permissions
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-04 14:33 UTC by Mira Ressel
Modified: 2017-06-23 13:45 UTC (History)
0 users

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 Mira Ressel 2016-11-04 14:33:59 UTC
The build.log files generated by portage have a file mode of 0770, while the other log files in TMPDIR have 0775.

Could you please change the mode of build.log files to 0775 or make it configurable (just like PORTAGE_WORKDIR_MODE)?
Comment 1 Zac Medico gentoo-dev 2016-11-04 19:31:56 UTC
Maybe we can just re-use PORTAGE_WORKDIR_MODE, and mask out the executable bits.
Comment 2 Mira Ressel 2016-11-04 20:05:24 UTC
(In reply to Zac Medico from comment #1)
> Maybe we can just re-use PORTAGE_WORKDIR_MODE, and mask out the executable
> bits.

I like this proposal, but there's a catch: Per default, PORTAGE_WORKDIR_MODE is 0700, whereas build.log's permissions are 0660. If your idea is implemented, the default permissions of build.log would change to 0600. This might break some current workflows relying on build.log being readable by the portage group.

I can think of two possibilities to avoid this:

a) Change PORTAGE_WORKDIR_MODE's default to 0770 (or 0750?), and set build.log's permissions to PORTAGE_WORKDIR_MODE w/o the execute bits.

b) Set build.log permissions to PORTAGE_WORKDIR_MODE w/o the execute bits, unless PORTAGE_WORKDIR_MODE hasn't been set by the user; in the latter case, set build.log's perms to 0660.

PS: The permission bits in my previous comment are of course wrong and should be 0660 / 0664 instead.
Comment 3 Mira Ressel 2017-06-23 13:45:14 UTC
Ping?