aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-22 16:54:56 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-22 16:54:56 +0200
commit629a59ca698a0e3d3a0a29d5f2245c0e19808849 (patch)
tree2d78e69929dc0475eb101f2071003b33bd162389 /Makefile
parentbeginning of mds-vt (diff)
downloadmds-629a59ca698a0e3d3a0a29d5f2245c0e19808849.tar.gz
mds-629a59ca698a0e3d3a0a29d5f2245c0e19808849.tar.bz2
mds-629a59ca698a0e3d3a0a29d5f2245c0e19808849.tar.xz
vt protocols
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b9cb6ed..67fe54e 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,9 @@ LIBOBJ = linked-list client-list hash-table fd-table mds-message util
SERVERS = mds mds-respawn mds-server mds-echo mds-registry mds-clipboard \
mds-kkbd mds-vt
+# Servers that need setuid and root owner.
+SETUID_SERVERS = mds mds-vt
+
OBJ_mds-server_ = mds-server interception-condition client multicast \
@@ -40,8 +43,8 @@ include mk/build.mk
.PHONY: perms
perms: all
- sudo chown 'root:root' bin/mds
- sudo chmod 4755 bin/mds
+ sudo chown 'root:root' $(foreach S,$(SETUID_SERVERS),bin/$(S))
+ sudo chmod 4755 $(foreach S,$(SETUID_SERVERS),bin/$(S))
# Clean rules.