suidless su added.

su removed from shadow
This commit is contained in:
Ali Riza KESKIN committed 2026-05-08 17:59:52 +03:00
1 parent 7775fca0cf
commit 7386485609
3 files changed
+38 -9

No files matched your search

-3
View File
@@ -21,6 +21,3 @@ if [ "$current" != "$last" ] ; then
date +%s -r /etc/pam.d/system-auth.d/ > /var/lib/ymp/sysconf/shadow/update.date date +%s -r /etc/pam.d/system-auth.d/ > /var/lib/ymp/sysconf/shadow/update.date
fi fi
if ! ls -la /usr/bin/su | grep "^...s" >/dev/null ; then
chmod 4755 /usr/bin/su
fi
+6 -6
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
name='shadow' name='shadow'
release='3' release='4'
version='4.18.0' version='4.19.4'
url='https://github.com/shadow-maint/shadow/releases' url='https://github.com/shadow-maint/shadow/releases'
description='Password and account management tool suite with support for shadow files and PAM' description='Password and account management tool suite with support for shadow files and PAM'
email='aliriza.keskin@pardus.org.tr' email='aliriza.keskin@pardus.org.tr'
@@ -13,7 +13,7 @@ source=("https://github.com/shadow-maint/shadow/releases/download/$version/shado
"system-auth") "system-auth")
depends=(pam libxcrypt acl attr) depends=(pam libxcrypt acl attr)
makedepends=( ) makedepends=( )
sha256sums=('add4604d3bc410344433122a819ee4154b79dd8316a56298c60417e637c07608' sha256sums=('ce57a313e315a0a7cb04a8f50cc20753e994e487bbe9b78a2a824ca75cb486c0'
'SKIP' 'SKIP'
'SKIP' 'SKIP'
'SKIP') 'SKIP')
@@ -37,9 +37,11 @@ setup(){
--without-group-name-max-length \ --without-group-name-max-length \
--without-selinux \ --without-selinux \
--without-libbsd \ --without-libbsd \
--without-su \
--with-yescrypt \ --with-yescrypt \
--without-bcrypt \ --without-bcrypt \
--disable-nls --disable-nls \
--disable-logind
} }
build(){ build(){
@@ -53,7 +55,5 @@ package(){
install -vDm 600 ../useradd.defaults "${DESTDIR}/etc/default/useradd" install -vDm 600 ../useradd.defaults "${DESTDIR}/etc/default/useradd"
install -vDm 600 ../system-auth "${DESTDIR}/etc/pam.d/system-auth.d/50-shadow" install -vDm 600 ../system-auth "${DESTDIR}/etc/pam.d/system-auth.d/50-shadow"
install -vDm 755 ../shadow.sysconf ${DESTDIR}/etc/sysconf.d/shadow install -vDm 755 ../shadow.sysconf ${DESTDIR}/etc/sysconf.d/shadow
mkdir -p $DESTDIR/etc/suid.d
echo "/usr/bin/su" > $DESTDIR/etc/suid.d/shadow
} }
+32
View File
@@ -0,0 +1,32 @@
#!/usr/bin/env bash
name='suidless-su'
release='1'
version='1.0.0'
url='https://gitlab.com/turkmen-linux/devel/sources/suidless-su'
description='su command replacement. No suid bit required.'
email='aliriza.keskin@pardus.org.tr'
maintainer='aliriza'
license=('GPLv3')
source=("https://gitlab.com/turkmen-linux/devel/sources/suidless-su/-/archive/$version/suidless-su-$version.tar.gz")
depends=()
makedepends=()
sha256sums=('9509c98796197e8d44e397d8198080313080010581a6038be4692b951a007864')
group=(sys.auth)
uses=()
arch=('x86_64')
cd $name-$version
setup () {
meson setup build \
--prefix=/usr
}
build () {
ninja -C build $jobs
}
package () {
ninja -C build install $jobs
}