http://bugzilla.suse.com/show_bug.cgi?id=1095670
Bug ID: 1095670
Summary: Problem with suid pgms on Leap-15.0
Classification: openSUSE
Product: openSUSE Distribution
Version: Leap 15.0
Hardware: Other
OS: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
Assignee: bnc-team-screening@forge.provo.novell.com
Reporter: dmarkh@cfl.rr.com
QA Contact: qa-bugs@suse.de
Found By: ---
Blocker: ---
I am upgrading an older SuSE-13.2 box to Leap. I have done a fresh Leap-15.0
install and ported over the source code that we ran on the 13.2 box. It builds
fine but I am having an issue. The program is/has to be an suid pgm. It also
uses fork/execvpe/wait to execute some external scripts. And that is where my
problem lies. The user is a member of several groups but these group
memberships seem to disappear when these external scripts are executed. For
instance the user is a member of the cdrom group so he can eject and work with
a DVD. I have created a simple example script and source for a pgm that
execvpe's that script which shows my problem.
test.sh script:
#!/bin/sh
whoami
id
test.c pgm source:
#define _GNU_SOURCE
#include