File git-46-78b2a0b29381c16bec6b2a8fc7eabaa9925782d7.patch of Package aaa_base.32208

From 78b2a0b29381c16bec6b2a8fc7eabaa9925782d7 Mon Sep 17 00:00:00 2001
From: Werner Fink <werner@suse.de>
Date: Wed, 18 May 2022 09:05:45 +0200
Subject: [PATCH] The wrapper rootsh is not a restricted shell

Signed-off-by: Werner Fink <werner@suse.de>
---
 files/etc/bash.bashrc | 1 +
 1 file changed, 1 insertion(+)

diff --git files/etc/bash.bashrc files/etc/bash.bashrc
index 0cb1ef3..4378a74 100644
--- a/files/etc/bash.bashrc
+++ b/files/etc/bash.bashrc
@@ -56,6 +56,7 @@ if test -z "$is" ; then
   #
   for a in $SHELL ; do
     case "$a" in
+      */rootsh) ;;
       */r*sh)
         readonly restricted=true ;;
       -r*|-[!-]r*|-[!-][!-]r*)
-- 
2.26.2

From dc83f4e9c91007d96df2047e44ae3baba102fcfb Mon Sep 17 00:00:00 2001
From: Werner Fink <werner@suse.de>
Date: Wed, 18 May 2022 09:18:50 +0200
Subject: [PATCH] Also in /etc/profile, rootsh is not restricted

Signed-off-by: Werner Fink <werner@suse.de>
---
 files/etc/profile | 1 +
 1 file changed, 1 insertion(+)

diff --git files/etc/profile files/etc/profile
index d392c60..2456ed0 100644
--- a/files/etc/profile
+++ b/files/etc/profile
@@ -48,6 +48,7 @@ if test -f /proc/mounts ; then
   #
   for a in $SHELL ; do
     case "$a" in
+      */rootsh) ;;
       */r*sh)
         readonly restricted=true ;;
       -r*|-[!-]r*|-[!-][!-]r*)
-- 
2.26.2

openSUSE Build Service is sponsored by