Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        Makefile.am e_sys_main.c 


Log Message:


fix suid of e_sys - fix freqset suid install

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/Makefile.am,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -3 -r1.147 -r1.148
--- Makefile.am 3 Sep 2006 08:51:31 -0000       1.147
+++ Makefile.am 3 Sep 2006 09:35:28 -0000       1.148
@@ -388,7 +388,7 @@
 
 enlightenment_sys_LDFLAGS = @e_libs@ @dlopen_libs@
 
-setuid_root_mode = a=rx,u+s
+setuid_root_mode = a=rx,u+xs
 install-exec-hook:
        @chmod $(setuid_root_mode) 
$(DESTDIR)$(bindir)/enlightenment_sys$(EXEEXT) || true
 
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_sys_main.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_sys_main.c        3 Sep 2006 08:51:32 -0000       1.1
+++ e_sys_main.c        3 Sep 2006 09:35:28 -0000       1.2
@@ -53,6 +53,12 @@
      {
        exit(-1);
      }
+
+   if (seteuid(0))
+     {
+       printf("ERROR: UNABLE TO ASSUME ROOT PRIVILEDGES\n");
+       exit(5);
+     }
    
    evas_init();
 



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to