Guest User

Untitled

a guest
Feb 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. Index: execwrap.c
  2. ===================================================================
  3. --- execwrap.c.orig
  4. +++ execwrap.c
  5. @@ -95,7 +95,7 @@
  6. #endif
  7.  
  8. /* Useful macro and other stuff. */
  9. -#define VERSION_STRING "ExecWrap v0.3 by Sune Foldager."
  10. +#define VERSION_STRING "ExecWrap v0.4 by Sune Foldager."
  11. #define STRLEN(a) (sizeof(a)-1)
  12.  
  13. /* Shortcuts. */
  14. Index: execwrap_config.h
  15. ===================================================================
  16. --- execwrap_config.h.orig
  17. +++ execwrap_config.h
  18. @@ -9,7 +9,8 @@
  19.  
  20.  
  21. /* Our parent must have this UID, or we will abort. */
  22. -#define PARENT_UID 104
  23. +/* uid=30(wwwrun) gid=8(www) groups=8(www) */
  24. +#define PARENT_UID 30
  25.  
  26. /* Minimum UID we can switch to. */
  27. #define TARGET_MIN_UID 1000
  28. @@ -18,7 +19,7 @@
  29. #define TARGET_MIN_GID 100
  30.  
  31. /* Path prefix all targets must start with. */
  32. -#define TARGET_PATH_PREFIX "/var/www/light/"
  33. +#define TARGET_PATH_PREFIX "/srv/www/"
  34.  
  35. /* Default UID to switch to, if none given. */
  36. #define DEFAULT_UID 65534
Add Comment
Please, Sign In to add comment