Bug 130112 - Does not drop supplementary groups
Summary: Does not drop supplementary groups
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ntp
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-08-17 09:01 UTC by Enrico Scholz
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: ntp-4.2.0.a.20040616-3
Clone Of:
Environment:
Last Closed: 2004-08-17 15:34:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Enrico Scholz 2004-08-17 09:01:11 UTC
Description of problem:

| # ps axu
| ntp       2018  0.0  7.6  4756 4756 ?        SL   10:28   0:00 ntpd -u ntp -p /var/run/ntpd.pid
| 
| # cat /proc/2018/status
| Name:   ntpd
| ...
| Uid:    38      38      38      38
| Gid:    0       0       0       0
| FDSize: 32
| Groups: 0 1 2 3 4 6 10 

As you see, the privileged group-memberships are not dropped. The gid
itself can be assigned by calling it with '-u ntp:ntp' instead of '-u
ntp':

| # ps axu
| ntp       2252  0.0  9.1  5660 5660 ?        SL   10:54   0:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid
|
| # cat /proc/2252/status
| Name:   ntpd
| ...
| Uid:    38      38      38      38
| Gid:    38      38      38      38
| FDSize: 32
| Groups: 0 1 2 3 4 6 10 

But it has still the supplementary group ids.



Version-Release number of selected component (if applicable):

ntp-4.2.0.a.20040616-2


Note You need to log in before you can comment on or make changes to this bug.