linux/fs/orangefs
Huang Xiaojia 96319dacaf orangefs: Constify struct kobj_type
'struct kobj_type' is not modified. It is only used in kobject_init()
which takes a 'const struct kobj_type *ktype' parameter.

Constifying this structure moves some data to a read-only section,
so increase over all security.

On a x86_64, compiled with defconfig:
Before:
======
   text	   data	    bss	    dec	    hex	filename
   7036	   2136	     56	   9228	   240c	fs/orangefs/orangefs-sysfs.o

After:
======
   text	   data	    bss	    dec	    hex	filename
   7484	   1880	     56	   9420	   24cc	fs/orangefs/orangefs-sysfs.o

Signed-off-by: Huang Xiaojia <huangxiaojia2@huawei.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
2024-09-06 10:18:17 -04:00
..
acl.c fs: port acl to mnt_idmap 2023-01-19 09:24:28 +01:00
dcache.c orangefs: cleanup uses of strncpy 2024-04-09 10:52:13 +02:00
devorangefs-req.c
dir.c orangefs: saner arguments passing in readdir guts 2023-12-21 12:53:36 -05:00
downcall.h
file.c orangefs: Provide a splice-read wrapper 2023-05-24 08:42:16 -06:00
inode.c orangefs: Remove calls to set/clear the error flag 2024-05-31 12:31:41 +02:00
Kconfig
Makefile
namei.c orangefs: cleanup uses of strncpy 2024-04-09 10:52:13 +02:00
orangefs-bufmap.c orangefs: Remove calls to set/clear the error flag 2024-05-31 12:31:41 +02:00
orangefs-bufmap.h
orangefs-cache.c fs/orangefs: remove ORANGEFS_CACHE_CREATE_FLAGS 2024-02-14 15:54:50 -05:00
orangefs-debug.h
orangefs-debugfs.c
orangefs-debugfs.h
orangefs-dev-proto.h
orangefs-kernel.h fs/orangefs: remove ORANGEFS_CACHE_CREATE_FLAGS 2024-02-14 15:54:50 -05:00
orangefs-mod.c
orangefs-sysfs.c orangefs: Constify struct kobj_type 2024-09-06 10:18:17 -04:00
orangefs-sysfs.h
orangefs-utils.c orangefs: convert to new timestamp accessors 2023-10-18 14:08:25 +02:00
protocol.h
super.c orangefs: fix out-of-bounds fsid access 2024-05-14 17:44:14 -07:00
symlink.c
upcall.h
waitqueue.c
xattr.c orangefs: move orangefs_xattr_handlers to .rodata 2023-10-09 16:24:21 +02:00