diff options
author | Christian Kellner <christian@kellner.me> | 2020-01-26 13:15:40 +0100 |
---|---|---|
committer | Hummer12007 <hilobakho@gmail.com> | 2020-01-26 23:43:02 +0200 |
commit | 7504b58765cafae7f7628fe02204883a200a4b10 (patch) | |
tree | 2de0a2c1838f9608168fcd7095c0db6703708d3a | |
parent | 9eee34e4f023732b9d17abddc03fa6f1faff6264 (diff) |
Use non-suid permissions when logind is used
When systemd-logind and its D-Bus API is used to actual change the
brightness of devices the binary does not have to be suid, which is
desired for security reasons.
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -11,16 +11,17 @@ INSTALL_UDEV_RULES = 1 INSTALL_UDEV_1 = install_udev_rules UDEVDIR ?= /lib/udev/rules.d +MODE_0 = 4711 +MODE_1 = 0755 +MODE = ${MODE_${INSTALL_UDEV_RULES}} + ifdef ENABLE_SYSTEMD CFLAGS += ${shell pkg-config --cflags libsystemd} LDLIBS += ${shell pkg-config --libs libsystemd} CPPFLAGS += -DENABLE_SYSTEMD + MODE = 0755 endif -MODE_0 = 4711 -MODE_1 = 0755 -MODE = ${MODE_${INSTALL_UDEV_RULES}} - all: brightnessctl brightnessctl.1 install: all ${INSTALL_UDEV_${INSTALL_UDEV_RULES}} |