In patch bash-4.4.dif avoud setgroups(2) but use initgroups(3)
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=263
This commit is contained in:
parent
71824847c8
commit
ce2abbd36f
@ -157,11 +157,13 @@
|
||||
disable_priv_mode ();
|
||||
|
||||
/* Need to get the argument to a -c option processed in the
|
||||
@@ -1277,6 +1278,7 @@ disable_priv_mode ()
|
||||
@@ -1277,6 +1278,9 @@ disable_priv_mode ()
|
||||
{
|
||||
int e;
|
||||
|
||||
+ setgroups(0, NULL);
|
||||
+ if (!current_user.user_name)
|
||||
+ get_current_user_info();
|
||||
+ initgroups (current_user.user_name, current_user.gid);
|
||||
if (setuid (current_user.uid) < 0)
|
||||
{
|
||||
e = errno;
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 4 09:21:15 UTC 2018 - werner@suse.de
|
||||
|
||||
- In patch bash-4.4.dif avoud setgroups(2) but use initgroups(3) (boo#1095670)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 18 10:49:26 UTC 2018 - werner@suse.de
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user