forked from enlightenment/enlightenment
fix suid of e_sys - fix freqset suid install
SVN revision: 25396
This commit is contained in:
parent
34d6645d66
commit
1da729667d
|
@ -388,7 +388,7 @@ e_sys_main.c
|
||||||
|
|
||||||
enlightenment_sys_LDFLAGS = @e_libs@ @dlopen_libs@
|
enlightenment_sys_LDFLAGS = @e_libs@ @dlopen_libs@
|
||||||
|
|
||||||
setuid_root_mode = a=rx,u+s
|
setuid_root_mode = a=rx,u+xs
|
||||||
install-exec-hook:
|
install-exec-hook:
|
||||||
@chmod $(setuid_root_mode) $(DESTDIR)$(bindir)/enlightenment_sys$(EXEEXT) || true
|
@chmod $(setuid_root_mode) $(DESTDIR)$(bindir)/enlightenment_sys$(EXEEXT) || true
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,12 @@ main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (seteuid(0))
|
||||||
|
{
|
||||||
|
printf("ERROR: UNABLE TO ASSUME ROOT PRIVILEDGES\n");
|
||||||
|
exit(5);
|
||||||
|
}
|
||||||
|
|
||||||
evas_init();
|
evas_init();
|
||||||
|
|
||||||
|
|
|
@ -27,9 +27,9 @@ module_la_DEPENDENCIES = $(top_builddir)/config.h
|
||||||
freqsetdir = $(pkgdir)
|
freqsetdir = $(pkgdir)
|
||||||
freqset_DATA = \
|
freqset_DATA = \
|
||||||
freqset$(EXEEXT)
|
freqset$(EXEEXT)
|
||||||
setuid_root_mode = a=rx,u+s
|
|
||||||
|
|
||||||
install-exec-hook:
|
setuid_root_mode = a=rx,u+xs
|
||||||
|
install-data-hook:
|
||||||
@chmod $(setuid_root_mode) $(DESTDIR)$(freqsetdir)/freqset$(EXEEXT) || true
|
@chmod $(setuid_root_mode) $(DESTDIR)$(freqsetdir)/freqset$(EXEEXT) || true
|
||||||
|
|
||||||
noinst_PROGRAMS = freqset
|
noinst_PROGRAMS = freqset
|
||||||
|
|
Loading…
Reference in New Issue