summaryrefslogtreecommitdiffstats
path: root/utils/gssd/gssd_proc.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2017-02-15 10:31:28 -0500
committerSteve Dickson <steved@redhat.com>2017-02-15 10:41:59 -0500
commit48cdcf68a9209ae239dfc3d1a0b482089ef2cd2a (patch)
treeca27fcdec27395a4ec26714fe7ee539d3e8d54bb /utils/gssd/gssd_proc.c
parent2b4b895faff5239774510afaa9948fea54e6967a (diff)
downloadnfs-utils-48cdcf68a9209ae239dfc3d1a0b482089ef2cd2a.tar.gz
nfs-utils-48cdcf68a9209ae239dfc3d1a0b482089ef2cd2a.tar.xz
nfs-utils-48cdcf68a9209ae239dfc3d1a0b482089ef2cd2a.zip
mount: call setgroups() before setuid()
It is generally wise to call setgroups() (and setgid()) before calling setuid() to ensure no unexpected permission leaks happen. SUSE's build system checks all binaries for conformance with this and generates a warning for mountd. As we are setting the uid to 0, there is no risk that the group list will provide extra permissions, so there is no real risk here. But it is nice to silence warnings, and including a setgroups() call is probably a good practice to encourage. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/gssd/gssd_proc.c')
0 files changed, 0 insertions, 0 deletions