At 11:18 AM 4/5/02, you wrote:
>Or better yet, is there a way to get the security check to ignore sockets 
>(which most of these are)?
Below is a patch that excludes sockets (and also replaces a numeric value 
by the proper named constant (MACRO)).  Hopefully it can get added to 8.2 
and cooker.

David


--- /usr/src/RPM/BUILD/msec-0.20/src/msec_find/orig/find.c      Tue Apr 18 
12:30:51 2000
+++ /usr/src/RPM/BUILD/msec-0.20/src/msec_find/find.c   Fri Apr  5 11:57:42 
2002
@@ -107,7 +107,7 @@
                  /*
                   * Is world writeable check.
                   */
-               if (sb->st_mode & 0002)
+               if ((sb->st_mode & S_IWOTH) && !S_ISSOCK(sb->st_mode))
                         fprintf(writeable_fd, "%s\n", file);

                  /*


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to