- add the abuild user to the trusted group so that
fusermount works (bug#1159963) OBS-URL: https://build.opensuse.org/package/show/Base:System/post-build-checks?expand=0&rev=152
This commit is contained in:
parent
856dafa61c
commit
58afa0fba6
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 24 16:17:32 CEST 2020 - ro@suse.de
|
||||||
|
|
||||||
|
- add the abuild user to the trusted group so that
|
||||||
|
fusermount works (bug#1159963)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 19 08:42:27 UTC 2020 - ro@suse.de
|
Wed Aug 19 08:42:27 UTC 2020 - ro@suse.de
|
||||||
|
|
||||||
|
@ -73,10 +73,16 @@ chmod 755 $RPM_BUILD_ROOT/usr/lib/build/checks-data/check*
|
|||||||
if ! test -e /.buildenv; then
|
if ! test -e /.buildenv; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
# change the PERMISSION set to "secure"
|
||||||
sed -i -e "s@^PERMISSION_SECURITY=.*@PERMISSION_SECURITY=\"secure\"@" /etc/sysconfig/security
|
sed -i -e "s@^PERMISSION_SECURITY=.*@PERMISSION_SECURITY=\"secure\"@" /etc/sysconfig/security
|
||||||
|
# add the abuild user to the trusted group so that fusermount works
|
||||||
|
usermod -G trusted -a abuild || true
|
||||||
|
# set the timezone to UTC
|
||||||
if [ -f /etc/sysconfig/clock ] ; then
|
if [ -f /etc/sysconfig/clock ] ; then
|
||||||
sed -i -e "s@^TIMEZONE=.*@TIMEZONE=\"UTC\"@" /etc/sysconfig/clock
|
sed -i -e "s@^TIMEZONE=.*@TIMEZONE=\"UTC\"@" /etc/sysconfig/clock
|
||||||
fi
|
fi
|
||||||
|
# and add the ugly workaround to override the output of uname -v
|
||||||
|
# to match the installed kernel sources
|
||||||
UNAME=/bin/uname
|
UNAME=/bin/uname
|
||||||
if test -f /usr/bin/uname ; then
|
if test -f /usr/bin/uname ; then
|
||||||
UNAME=/usr/bin/uname
|
UNAME=/usr/bin/uname
|
||||||
|
Loading…
Reference in New Issue
Block a user