aboutsummaryrefslogtreecommitdiff
path: root/core/ubase/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-04-13 01:23:50 +0300
committerCem Keylan <cem@ckyln.com>2020-04-13 01:23:50 +0300
commit5c1f062d7cbd415cab482bfd548985fbe408cef9 (patch)
treedc33e710f4bbc2b292b333b42a44b98b93a34cd5 /core/ubase/build
parent5fca05c740128caf495be9d72008a69493726a0f (diff)
downloadrepository-5c1f062d7cbd415cab482bfd548985fbe408cef9.tar.gz
ubase: unlink stat and su
Diffstat (limited to 'core/ubase/build')
-rwxr-xr-xcore/ubase/build10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/ubase/build b/core/ubase/build
index d965a9ff..dc26aff0 100755
--- a/core/ubase/build
+++ b/core/ubase/build
@@ -2,3 +2,13 @@
make CFLAGS="$CFLAGS -static" ubase-box
make DESTDIR="$1" PREFIX=/usr ubase-box-install
+
+# stat in ubase is not a good option at the time
+# being. It has almost none of the options stat
+# is used for.
+unlink "$1/usr/bin/stat"
+
+# You cannot execute commands with the ubase
+# implementation of su, which might break kiss
+# if the user doesn't have sudo or doas installed.
+unlink "$1/usr/bin/su"