diff options
-rw-r--r-- | src/modules/Makefile.am | 2 | ||||
-rw-r--r-- | src/modules/Makefile_cpufreq.am | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/modules/Makefile.am b/src/modules/Makefile.am index 8f7346de96..78789fa507 100644 --- a/src/modules/Makefile.am +++ b/src/modules/Makefile.am @@ -237,3 +237,5 @@ endif #if HAVE_WAYLAND_SCREENSHOT #include Makefile_wl_screenshot.am #endif + +install-data-hook: $(INSTALL_DATA_HOOKS) diff --git a/src/modules/Makefile_cpufreq.am b/src/modules/Makefile_cpufreq.am index 882c60caad..78b369e0d6 100644 --- a/src/modules/Makefile_cpufreq.am +++ b/src/modules/Makefile_cpufreq.am @@ -19,8 +19,11 @@ cpufreq_freqset_SOURCES = cpufreq/freqset.c cpufreq_freqset_CFLAGS = @e_cflags@ @SUID_CFLAGS@ cpufreq_freqset_LDFLAGS = @SUID_LDFLAGS@ +cpufreq_setuid_root_mode = a=rx,u+xs +cpufreq_setuid_root_user = root + cpufreq-install-data-hook: - @chown $(setuid_root_user) $(DESTDIR)$(freqsetdir)/freqset$(EXEEXT) || true - @chmod $(setuid_root_mode) $(DESTDIR)$(freqsetdir)/freqset$(EXEEXT) || true + @chown $(cpufreq_setuid_root_user) $(DESTDIR)$(freqsetdir)/freqset$(EXEEXT) || true + @chmod $(cpufreq_setuid_root_mode) $(DESTDIR)$(freqsetdir)/freqset$(EXEEXT) || true INSTALL_DATA_HOOKS += cpufreq-install-data-hook |