Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42355 - creation / development of a 'security.mask' file to parallel package.mask
Summary: creation / development of a 'security.mask' file to parallel package.mask
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Conceptual/Abstract Ideas (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-02-21 04:31 UTC by SpanKY
Modified: 2004-05-13 09:39 UTC (History)
4 users (show)

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


Attachments
Patch to show comments from package.mask (package.mask-comment.diff,1.36 KB, patch)
2004-04-01 00:29 UTC, Marius Mauch (RETIRED)
Details | Diff
updated patch to show comments only once (package.mask-comment.diff,1.63 KB, patch)
2004-04-03 04:42 UTC, Marius Mauch (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2004-02-21 04:31:46 UTC
current possible requirements that i can think of:
specify portage versions that are affected (i.e. DEPEND atoms)
optional bug field (for when theres a bug on bugs.gentoo.org for it)
warn users who already have the package installed (perhaps after every `emerge sync`)
warn users who will be installing the package and force the user to say 'yes' to an interactive prompt in order to merge the package
Comment 1 Erik Swanson (RETIRED) gentoo-dev 2004-02-26 13:01:14 UTC
Instead of a specific bug field, wouldn't it be more useful to extend the package.mask file format to include a generic comment field? It'd be nice to see a brief comment on why a particular package/version is masked instead of "all ebuilds that could satisfy package have been masked."

Also, I don't think an interactive "yes" is the way to go for protecting users from themselves.
Differentiating security.mask from package.mask by making it ignore package.unmask would force the user to either edit security.mask or run ebuild directly (which should complain very loudly, like emerge depclean does). This is about as much as one can hope to protect a user from him/herself.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2004-02-26 14:16:15 UTC
package.mask already has comments why somethong is masked, it's just not shown by emerge. Also why should it ignore package.unmask, both solutions you offered are nasty hacks (one which is only temporary, the other is discouraged by every dev for normal usage as it's for ebuild testing ONLY). If you already unmasked a package with package.unmask you obviously don't care about problems with it.
The only difference between package.mask and security.mask that I see is the additional warning if the package is already installed (as I also don't think a yes/no prompt is a good idea).
Comment 3 Joshua Brindle (RETIRED) gentoo-dev 2004-02-26 15:58:39 UTC
an additional difference would be the ability to explicitly bypass security.mask by emerge --ignore-security-mask or some such. this would be required for people who don't really care about security, but to still acknowledge the risk..

furthermore, the idea of another file was so that it is a seperate file on cvs.g.o with permissions set so that only people in the security group can edit it
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-26 17:57:15 UTC
(slightly OT)
I think comment #1 is valid. Why not have a field in {package,security}.mask that is read and printed by Portage when the "packages are masked" error shows up? There are comments already, it's just not obvious where to find them. Is there a reason to not print them automatically?
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2004-04-01 00:29:34 UTC
Created attachment 28497 [details, diff]
Patch to show comments from package.mask

With this patch applied emerge will print the comment from package.mask if it
encounters a hardmasked package.
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-01 15:54:44 UTC
For some reason this double-prints the comment for utempter and xterm.
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2004-04-03 04:42:38 UTC
Created attachment 28612 [details, diff]
updated patch to show comments only once

Well, if the mask affects several versions the comment is shown for each
version. New patch only shows the comment for the first version.
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-03 09:21:29 UTC
Right, I figured that out about five seconds after posting, but I still think the updated version (only showing the comment once even with multiple versions) makes more sense.

What happens if multiple versions are masked in separate sections of package.mask with different comments?
Comment 9 Marius Mauch (RETIRED) gentoo-dev 2004-04-03 10:02:00 UTC
if the comment isn't the same it will be shown (as in the code: if comment != oldcomment ;)
Comment 10 Kurt Lieber (RETIRED) gentoo-dev 2004-04-08 01:29:08 UTC
how are we doing on this?  Is the code ready to be patched into portage and be released?
Comment 11 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-10 15:51:53 UTC
I don't like to use comment string as system message.
And I agree with comment #1.
Comment 12 Marius Mauch (RETIRED) gentoo-dev 2004-04-12 13:54:14 UTC
You only mean the comment sign or the text in general ?
Also which parts of comment #1 do you agree on ?
The main reason why I don't want a new file is compatibility as many tools would have to be changed and also old portage versions will ignore it, so it's not safe to use for quite some time (I recommend 3 months at least before depending on specific portage features)
Comment 13 Nicholas Jones (RETIRED) gentoo-dev 2004-04-13 18:21:10 UTC
genone's patch is included for 2.0.51_pre3...
I am not a particular fan of security.mask either.
Comment 14 Kurt Lieber (RETIRED) gentoo-dev 2004-05-13 09:39:48 UTC
this is included in portage -- just waiting for .51 to get released and stable.

closing bug.