diff options
Diffstat (limited to 'security/gringotts/files/patch-grg_safe.c')
-rw-r--r-- | security/gringotts/files/patch-grg_safe.c | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/security/gringotts/files/patch-grg_safe.c b/security/gringotts/files/patch-grg_safe.c index 5ce852a3254b..c2231ce70bc6 100644 --- a/security/gringotts/files/patch-grg_safe.c +++ b/security/gringotts/files/patch-grg_safe.c @@ -1,5 +1,5 @@ ---- src/grg_safe.c.orig Thu Dec 5 15:10:07 2002 -+++ src/grg_safe.c Sat Jan 4 19:53:18 2003 +--- src/grg_safe.c.orig Tue Feb 18 22:04:29 2003 ++++ src/grg_safe.c Tue Feb 18 22:05:27 2003 @@ -33,6 +33,7 @@ #include <stdlib.h> @@ -25,15 +25,6 @@ #ifdef HAVE_SYS_FSUID_H setfsgid (getgid ()); setfsgid (getgid ()); -@@ -67,7 +65,7 @@ - if (!geteuid ()) - //the process is (ev. SUID) root. I can mlockall() the memory in order to avoid swapping. - { --#ifdef HAVE_MLOCK -+#ifdef HAVE_MLOCKALL - gint res = mlockall (MCL_CURRENT | MCL_FUTURE); - - if (res) @@ -82,8 +80,6 @@ #endif @@ -43,21 +34,3 @@ #ifdef HAVE_SYS_FSUID_H setfsuid (getuid ()); setfsuid (getuid ()); -@@ -243,7 +239,7 @@ - if (!(geteuid () && getegid () && getuid () && getgid ())) - change_sec_level (GRG_UNSAFE); - --#ifdef HAVE_MLOCK -+#ifdef HAVE_MLOCKALL - if (!mem_safe) - change_sec_level (GRG_UNSAFE); - #endif -@@ -347,7 +343,7 @@ - ADD_INDICATOR (GTK_DIALOG (dialog)->vbox, - _("Memory protection from core dumps"), green) g_free (rl); - --#ifdef HAVE_MLOCK -+#ifdef HAVE_MLOCKALL - if (mem_safe) - ADD_INDICATOR (GTK_DIALOG (dialog)->vbox, - _("Memory protection from swap writings"), green) |