Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 894754 - sys-apps/shadow should use capabilities instead of suid root for new{g,u}idmap binaries
Summary: sys-apps/shadow should use capabilities instead of suid root for new{g,u}idma...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-16 09:33 UTC by Michael Vetter
Modified: 2023-06-17 02:44 UTC (History)
2 users (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 Michael Vetter 2023-02-16 09:33:54 UTC
shadow should use capabilities instead of suid root for new{g,u}idmap binaries.

According to https://github.com/shadow-maint/shadow/blob/master/libmisc/idmapping.c#L124 this is superior from a functionality perspective.

And I think from a security perspective less binaries with suid root are preferable as well.

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-16 09:37:43 UTC
We'll have to do it conditionally as not all filesystems support caps. Thanks!
Comment 2 Larry the Git Cow gentoo-dev 2023-06-17 02:40:21 UTC Comment hidden (obsolete)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-17 02:44:30 UTC
Sorry, tagged wrong bug.