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.

77 lines
3.0 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/81-reiser-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/reiserfs/namei.c.orig 2003-01-13 10:03:00.000000000 +0100
  23. +++ ./fs/reiserfs/namei.c 2003-01-13 10:03:57.000000000 +0100
  24. @@ -555,6 +555,13 @@
  25. } else {
  26. inode->i_gid = current->fsgid;
  27. }
  28. +#ifdef CONFIG_REISERFS_FS_SUIDDIR
  29. + if (dir->i_mode & S_ISUID) {
  30. + inode->i_mode |= (inode->i_mode & 0700) >> 3;
  31. + if (S_ISDIR(inode->i_mode))
  32. + inode->i_mode |= S_ISUID;
  33. + }
  34. +#endif
  35. return 0 ;
  36. }
  37. --- ./fs/Kconfig.orig 2003-01-13 10:00:39.000000000 +0100
  38. +++ ./fs/Kconfig 2003-01-13 10:04:55.000000000 +0100
  39. @@ -252,6 +252,35 @@
  40. Almost everyone but ReiserFS developers and people fine-tuning
  41. reiserfs or tracing problems should say N.
  42. +config REISERFS_FS_SUIDDIR
  43. + bool "Reiserfs SUID on Directory Extension"
  44. + depends on REISERFS_FS
  45. + help
  46. + As you might know, the SGID flag has a special function on
  47. + directories: files within that directories will be owned by
  48. + the same group that also owns the directory - which is useful
  49. + for creating directories which are shared between the members
  50. + of a group.
  51. +
  52. + But that only makes sense if the umask is set to give full
  53. + permissions to the group (e.g. 007 or 002). Noone would do that
  54. + if there is a system-wide 'users' group - so some distributions
  55. + add an extra group for every user which lets the /etc/group
  56. + file grow very fast and makes the admins life harder ...
  57. +
  58. + Activating this feture adds a function to the SUID flag on
  59. + directories, which usually has no function at all:
  60. +
  61. + If the SUID flag is set for a diectory, all new files in that
  62. + directory will get the same rights in the group-field as they
  63. + have in their user-field. So, if one sets both - SUID and SGID
  64. + - on a directory, it will also work with a umask like 022 or
  65. + 077 and there is no more need for an extra group for every user.
  66. +
  67. + Also, the SUID flag will be set to all subdirectories of a
  68. + SUID directory (as it is already now with the SGID flag on
  69. + directories).
  70. +
  71. config JFS_FS
  72. tristate "JFS filesystem support"
  73. help