mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

139 lines
5.2 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/linux26/80-ext23-suiddir.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./fs/ext3/ialloc.c.orig 2002-11-27 23:36:00.000000000 +0100
  23. +++ ./fs/ext3/ialloc.c 2003-01-13 09:50:38.000000000 +0100
  24. @@ -520,6 +520,13 @@
  25. mode |= S_ISGID;
  26. } else
  27. inode->i_gid = current->fsgid;
  28. +#ifdef CONFIG_EXT3_FS_SUIDDIR
  29. + if (dir->i_mode & S_ISUID) {
  30. + mode |= (mode & 0700) >> 3;
  31. + if (S_ISDIR(mode))
  32. + mode |= S_ISUID;
  33. + }
  34. +#endif
  35. inode->i_mode = mode;
  36. inode->i_ino = ino;
  37. --- ./fs/ext2/ialloc.c.orig 2002-11-27 23:36:00.000000000 +0100
  38. +++ ./fs/ext2/ialloc.c 2003-01-13 09:50:38.000000000 +0100
  39. @@ -509,6 +509,13 @@
  40. mode |= S_ISGID;
  41. } else
  42. inode->i_gid = current->fsgid;
  43. +#ifdef CONFIG_EXT2_FS_SUIDDIR
  44. + if (dir->i_mode & S_ISUID) {
  45. + mode |= (mode & 0700) >> 3;
  46. + if (S_ISDIR(mode))
  47. + mode |= S_ISUID;
  48. + }
  49. +#endif
  50. inode->i_mode = mode;
  51. inode->i_ino = ino;
  52. --- ./CREDITS.orig 2002-11-27 23:36:15.000000000 +0100
  53. +++ ./CREDITS 2003-01-13 09:50:46.000000000 +0100
  54. @@ -3346,6 +3346,8 @@
  55. E: god@clifford.at
  56. W: http://www.clifford.at/
  57. D: Menuconfig/lxdialog improvement
  58. +D: Initial Wacom Intuos USB Driver
  59. +D: Ext[23]FS and Reiserfs SUID on directories extension
  60. S: Foehrengasse 16
  61. S: A-2333 Leopoldsdorf b. Wien
  62. S: Austria
  63. --- ./fs/Kconfig.orig 2003-06-07 18:13:43.000000000 +0200
  64. +++ ./fs/Kconfig 2003-06-07 18:16:50.000000000 +0200
  65. @@ -155,6 +155,35 @@
  66. If you are not using a security module that requires using
  67. extended attributes for file security labels, say N.
  68. +config EXT3_FS_SUIDDIR
  69. + bool "Ext3fs SUID on Directory Extension"
  70. + depends on EXT3_FS
  71. + help
  72. + As you might know, the SGID flag has a special function on
  73. + directories: files within that directories will be owned by
  74. + the same group that also owns the directory - which is useful
  75. + for creating directories which are shared between the members
  76. + of a group.
  77. +
  78. + But that only makes sense if the umask is set to give full
  79. + permissions to the group (e.g. 007 or 002). Noone would do that
  80. + if there is a system-wide 'users' group - so some distributions
  81. + add an extra group for every user which lets the /etc/group
  82. + file grow very fast and makes the admins life harder ...
  83. +
  84. + Activating this feture adds a function to the SUID flag on
  85. + directories, which usually has no function at all:
  86. +
  87. + If the SUID flag is set for a diectory, all new files in that
  88. + directory will get the same rights in the group-field as they
  89. + have in their user-field. So, if one sets both - SUID and SGID
  90. + - on a directory, it will also work with a umask like 022 or
  91. + 077 and there is no more need for an extra group for every user.
  92. +
  93. + Also, the SUID flag will be set to all subdirectories of a
  94. + SUID directory (as it is already now with the SGID flag on
  95. + directories).
  96. +
  97. config JBD
  98. # CONFIG_JBD could be its own option (even modular), but until there are
  99. # other users than ext3, we will simply make it be the same as CONFIG_EXT3_FS
  100. @@ -1183,6 +1212,35 @@
  101. +config EXT2_FS_SUIDDIR
  102. + bool "Ext2fs SUID on Directory Extension"
  103. + depends on EXT2_FS
  104. + ---help---
  105. + As you might know, the SGID flag has a special function on
  106. + directories: files within that directories will be owned by
  107. + the same group that also owns the directory - which is useful
  108. + for creating directories which are shared between the members
  109. + of a group.
  110. +
  111. + But that only makes sense if the umask is set to give full
  112. + permissions to the group (e.g. 007 or 002). Noone would do that
  113. + if there is a system-wide 'users' group - so some distributions
  114. + add an extra group for every user which lets the /etc/group
  115. + file grow very fast and makes the admins life harder ...
  116. +
  117. + Activating this feture adds a function to the SUID flag on
  118. + directories, which usually has no function at all:
  119. +
  120. + If the SUID flag is set for a diectory, all new files in that
  121. + directory will get the same rights in the group-field as they
  122. + have in their user-field. So, if one sets both - SUID and SGID
  123. + - on a directory, it will also work with a umask like 022 or
  124. + 077 and there is no more need for an extra group for every user.
  125. +
  126. + Also, the SUID flag will be set to all subdirectories of a
  127. + SUID directory (as it is already now with the SGID flag on
  128. + directories).
  129. +
  130. config SYSV_FS
  131. tristate "System V/Xenix/V7/Coherent file system support"
  132. help