Skip to contentSkip to conversation

LSM changes for 2.5.28

PATCH In review Greg KH 1 participant 2 messages Jul 26, 2002

lore
Share & tools
lore

Greg KH

author
#0 lore raw

PATCH 1/1 LSM changes for 2.5.28

Hi,

These changesets contain some changes to the different arch config.in menus to pull in the security menu so they correctly use the capabilities code, some CREDIT file updates, and the file specific LSM hooks.

Please pull from: bk://lsm.bkbits.net/linus-2.5

thanks,

greg k-h

 CREDITS                   |   32 ++
 arch/alpha/config.in      |    1 
 arch/arm/config.in        |    1 
 arch/cris/config.in       |    4 
 arch/ia64/config.in       |    2 
 arch/ia64/kernel/ptrace.c |    4 
 arch/m68k/config.in       |    2 
 arch/mips/config.in       |    1 
 arch/mips64/config.in     |    1 
 arch/parisc/config.in     |    1 
 arch/ppc/config.in        |    9 
 arch/ppc64/config.in      |    7 
 arch/s390/config.in       |    1 
 arch/s390x/config.in      |    1 
 arch/sh/config.in         |    1 
 arch/sparc/config.in      |    1 
 arch/sparc64/config.in    |    1 
 arch/x86_64/config.in     |    1 
 drivers/char/tty_io.c     |   44 +--
 fs/attr.c                 |   11 
 fs/dnotify.c              |    8 
 fs/dquot.c                |    3 
 fs/fcntl.c                |   25 +
 fs/file_table.c           |    9 
 fs/inode.c                |   12 
 fs/ioctl.c                |    8 
 fs/locks.c                |   20 +
 fs/namei.c                |  143 ++++++++--
 fs/namespace.c            |   27 ++
 fs/open.c                 |    4 
 fs/proc/base.c            |    4 
 fs/quota.c                |    4 
 fs/read_write.c           |   90 +++++-
 fs/readdir.c              |    5 
 fs/stat.c                 |   13 
 fs/super.c                |    9 
 fs/xattr.c                |   17 +
 include/linux/fs.h        |   43 +++
 include/linux/security.h  |  430 ++++++++++++++++++++++++++++++++
 init/do_mounts.c          |    1 
 kernel/acct.c             |    5 
 mm/filemap.c              |    9 
 mm/mmap.c                 |    5 
 mm/mprotect.c             |    5 
 net/core/scm.c            |    4 
 security/capability.c     |  608 ++++++++++++++++++++++++++++++++++++---------
 security/dummy.c          |  612 ++++++++++++++++++++++++++++++++++++----------
 47 files changed, 1916 insertions(+), 333 deletions(-)

------

[email protected], 2002-07-25 11:48:05-07:00, [email protected]
Merge kroah.com:/home/greg/linux/BK/bleeding_edge-2.5 into kroah.com:/home/greg/linux/BK/lsm-2.5

 arch/ppc/config.in    |    3 +++
 drivers/char/tty_io.c |    4 ++++
 fs/proc/base.c        |    2 +-
 fs/read_write.c       |   45 +++++++++++++++++++++++++++++++++++----------
 include/linux/fs.h    |    5 +++++
 5 files changed, 48 insertions(+), 11 deletions(-)

------

[email protected], 2002-07-24 09:27:51-07:00, [email protected]
Merge kroah.com:/home/greg/linux/BK/bleeding_edge-2.5 into kroah.com:/home/greg/linux/BK/lsm-2.5

 arch/m68k/config.in   |    1 +
 arch/ppc/config.in    |    3 +++
 arch/ppc64/config.in  |    6 ++++++
 drivers/char/tty_io.c |   10 +++++-----
 4 files changed, 15 insertions(+), 5 deletions(-)

------

[email protected], 2002-07-24 09:15:46-07:00, [email protected]
[PATCH] credits update

Added LSM credit entry

 CREDITS |    8 ++++++++
 1 files changed, 8 insertions(+)

------

[email protected], 2002-07-22 14:44:56-07:00, [email protected]
LSM: fixed typo that happened in merge

 security/dummy.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

------

[email protected], 2002-07-22 14:20:35-07:00, [email protected]
Merge kroah.com:/home/greg/linux/BK/bleeding_edge-2.5 into kroah.com:/home/greg/linux/BK/work-2.5

 fs/namei.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)

------

[email protected], 2002-07-22 14:17:41-07:00, [email protected]
LSM: convert initializers to C99 style.

 security/capability.c |  106 ++++++++++++++++++++++++------------------------
 security/dummy.c      |  110 +++++++++++++++++++++++++-------------------------
 2 files changed, 108 insertions(+), 108 deletions(-)

------

[email protected], 2002-07-22 14:06:28-07:00, [email protected]
merge

 drivers/char/tty_io.c |   26 ++++++-----------
 fs/namei.c            |   10 +-----
 include/linux/fs.h    |   33 ++++++++++++++++++++-
 security/capability.c |   76 +++++++++++++++++++++++++-------------------------
 security/dummy.c      |   70 +++++++++++++++++++++++-----------------------
 5 files changed, 117 insertions(+), 98 deletions(-)

------

[email protected], 2002-07-22 13:50:01-07:00, [email protected]
[PATCH] LSM: file related LSM hooks

The below patch adds the filesystem-related LSM hooks, specifically the super_block, inode, and file hooks, to the 2.5.27 kernel.

 drivers/char/tty_io.c    |    4 
 fs/attr.c                |   11 -
 fs/dnotify.c             |    8 
 fs/dquot.c               |    3 
 fs/fcntl.c               |   25 ++
 fs/file_table.c          |    9 
 fs/inode.c               |   12 +
 fs/ioctl.c               |    8 
 fs/locks.c               |   20 ++
 fs/namei.c               |  127 ++++++++++---
 fs/namespace.c           |   27 ++
 fs/open.c                |    4 
 fs/proc/base.c           |    2 
 fs/quota.c               |    4 
 fs/read_write.c          |   45 +++-
 fs/readdir.c             |    5 
 fs/stat.c                |   13 +
 fs/super.c               |    9 
 fs/xattr.c               |   17 +
 include/linux/fs.h       |    5 
 include/linux/security.h |  430 +++++++++++++++++++++++++++++++++++++++++++++++
 init/do_mounts.c         |    1 
 kernel/acct.c            |    5 
 mm/filemap.c             |    9 
 mm/mmap.c                |    5 
 mm/mprotect.c            |    5 
 net/core/scm.c           |    4 
 security/capability.c    |  362 +++++++++++++++++++++++++++++++++++++++
 security/dummy.c         |  366 ++++++++++++++++++++++++++++++++++++++++
 29 files changed, 1501 insertions(+), 44 deletions(-)

------

[email protected], 2002-07-22 13:21:07-07:00, [email protected]
[PATCH] LSM: CREDITS entry

 CREDITS |    8 ++++++++
 1 files changed, 8 insertions(+)

------

[email protected], 2002-07-22 12:32:00-07:00, [email protected]
added ptrace hook for ia64

 arch/ia64/kernel/ptrace.c |    4 ++++
 1 files changed, 4 insertions(+)

------

[email protected], 2002-07-22 12:29:42-07:00, [email protected]
updated my CREDITS entry.

 CREDITS |    1 +
 1 files changed, 1 insertion(+)

------

[email protected], 2002-07-22 12:26:00-07:00, [email protected]
[PATCH] LSM: CREDITS entries

Here are CREDITS entries for myself and my two colleagues who also contributed to LSM.

 CREDITS |   15 +++++++++++++++
 1 files changed, 15 insertions(+)

------

[email protected], 2002-07-22 11:55:00-07:00, [email protected]
LSM: fixed up all of the other archs (non i386) to include the security config menu.

 arch/alpha/config.in   |    1 +
 arch/arm/config.in     |    1 +
 arch/cris/config.in    |    4 +++-
 arch/ia64/config.in    |    2 ++
 arch/m68k/config.in    |    1 +
 arch/mips/config.in    |    1 +
 arch/mips64/config.in  |    1 +
 arch/parisc/config.in  |    1 +
 arch/ppc/config.in     |    3 +++
 arch/ppc64/config.in   |    1 +
 arch/s390/config.in    |    1 +
 arch/s390x/config.in   |    1 +
 arch/sh/config.in      |    1 +
 arch/sparc/config.in   |    1 +
 arch/sparc64/config.in |    1 +
 arch/x86_64/config.in  |    1 +
 16 files changed, 21 insertions(+), 1 deletion(-)

------

[email protected], 2002-07-22 10:11:56-07:00, [email protected]
[PATCH] LSM to designated initializers

Over the last few days there has been discussion on the LKML list about converting struct initializers from the
field: val,
format into
.field = val,

I have included a patch that will do this for both the dummy and capabilities files.

except that the repository that you are pushing to is 20 changesets ahead of your repository. Please do a "bk pull" to get these changes or do a "bk pull -nl" to see what they are.

 security/capability.c |   64 +++++++++++++++++++++++++-------------------------
 security/dummy.c      |   64 +++++++++++++++++++++++++-------------------------
 2 files changed, 64 insertions(+), 64 deletions(-)

------