aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/proc_sysctl.c
AgeCommit message (Expand)AuthorFilesLines
2025-07-28Merge tag 'pull-dcache' of git://git.kernel.org/pub/scm/linux/kernel/git/viro...Linus Torvalds1-4/+3
2025-07-03fix proc_sys_compare() handling of in-lookup dentriesAl Viro1-7/+11
2025-06-10switch procfs from d_set_d_op() to d_splice_alias_ops()Al Viro1-4/+3
2025-01-27Pass parent directory inode and expected name to ->d_revalidate()Al Viro1-1/+2
2024-10-31sysctl: Reduce dput(child) calls in proc_sys_fill_cache()Markus Elfring1-4/+4
2024-10-10sysctl: Convert locking comments to lockdep assertionsThomas Weißschuh1-4/+10
2024-10-09sysctl: make internal ctl_tables constThomas Weißschuh1-2/+2
2024-10-09sysctl: allow registration of const struct ctl_tableThomas Weißschuh1-3/+3
2024-10-09sysctl: move internal interfaces to const struct ctl_tableThomas Weißschuh1-40/+41
2024-09-02sysctl: avoid spurious permanent empty tablesThomas Weißschuh1-3/+8
2024-06-13sysctl: Warn on an empty procname elementJoel Granados1-0/+2
2024-06-13sysctl: Remove ctl_table sentinel code commentsJoel Granados1-1/+1
2024-06-13sysctl: Remove "child" sysctl code commentsJoel Granados1-16/+10
2024-06-13sysctl: Remove superfluous empty allocations from sysctl internalsJoel Granados1-4/+4
2024-06-13sysctl: Replace nr_entries with ctl_table_size in new_linksJoel Granados1-8/+6
2024-06-13sysctl: Remove check for sentinel element in ctl_table arraysJoel Granados1-1/+1
2024-06-03sysctl: move the extra1/2 boundary check of u8 to sysctl_check_table_arrayWen Yang1-0/+14
2024-06-03sysctl: always initialize i_uid/i_gidThomas Weißschuh1-4/+2
2024-04-24sysctl: drop now unnecessary out-of-bounds checkThomas Weißschuh1-5/+2
2024-04-24sysctl: move sysctl type to ctl_table_headerThomas Weißschuh1-4/+6
2024-04-24sysctl: drop sysctl_is_perm_empty_ctl_tableThomas Weißschuh1-5/+3
2024-04-24sysctl: treewide: drop unused argument ctl_table_root::set_ownership(table)Thomas Weißschuh1-1/+1
2024-01-11Merge tag 'pull-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfsLinus Torvalds1-12/+2
2023-12-28fs: Remove the now superfluous sentinel elements from ctl_table arrayJoel Granados1-1/+0
2023-12-28sysctl: Fix out of bounds access for empty sysctl registersJoel Granados1-2/+7
2023-12-21/proc/sys: use d_splice_alias() calling conventions to simplify failure exitsAl Viro1-12/+2
2023-11-01Merge tag 'sysctl-6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Linus Torvalds1-1/+7
2023-11-01watchdog: move softlockup_panic back to early_paramKrister Johansen1-1/+0
2023-11-01proc: sysctl: prevent aliased sysctls from getting passed to initKrister Johansen1-0/+7
2023-10-18proc: convert to new timestamp accessorsJeff Layton1-1/+1
2023-08-29Merge tag 'sysctl-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Linus Torvalds1-44/+46
2023-08-15sysctl: Use ctl_table_size as stopping criteria for list macroJoel Granados1-2/+3
2023-08-15sysctl: Add size arg to __register_sysctl_initJoel Granados1-9/+3
2023-08-15sysctl: Add size to register_sysctlJoel Granados1-14/+16
2023-08-15sysctl: Add a size arg to __register_sysctl_tableJoel Granados1-11/+12
2023-08-15sysctl: Add size argument to init_headerJoel Granados1-5/+7
2023-08-15sysctl: Use ctl_table_header in list_for_each_table_entryJoel Granados1-12/+14
2023-08-15sysctl: Prefer ctl_table_header in proc_sysctlJoel Granados1-18/+18
2023-08-09fs: pass the request_mask to generic_fillattrJeff Layton1-1/+1
2023-07-24procfs: convert to ctime accessor functionsJeff Layton1-1/+1
2023-06-30sysctl: set variable sysctl_mount_point storage-class-specifier to staticTom Rix1-1/+1
2023-06-28Merge tag 'v6.5-rc1-sysctl-next' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-225/+19
2023-06-18sysctl: replace child with an enumerationJoel Granados1-63/+18
2023-06-18sysctl: Remove debugging dump_stackJoel Granados1-1/+0
2023-05-24tty, proc, kernfs, random: Use copy_splice_read()David Howells1-1/+1
2023-05-23sysctl: Remove register_sysctl_tableJoel Granados1-159/+0
2023-05-23sysctl: stop exporting register_sysctl_tableJoel Granados1-3/+2
2023-05-02sysctl: remove register_sysctl_paths()Luis Chamberlain1-51/+4
2023-04-27Merge tag 'mm-nonmm-stable-2023-04-27-16-01' of git://git.kernel.org/pub/scm/...Linus Torvalds1-1/+0
2023-04-13proc_sysctl: enhance documentationLuis Chamberlain1-5/+20
2023-04-13sysctl: clarify register_sysctl_init() base directory orderLuis Chamberlain1-4/+1
2023-04-13proc_sysctl: move helper which creates required subdirectoriesLuis Chamberlain1-24/+32
2023-04-13proc_sysctl: update docs for __register_sysctl_table()Luis Chamberlain1-3/+11
2023-04-08proc: remove mark_inode_dirty() in .setattr()Chao Yu1-1/+0
2023-02-21sysctl: fix proc_dobool() usabilityOndrej Mosnacek1-0/+6
2023-01-19fs: port ->permission() to pass mnt_idmapChristian Brauner1-1/+1
2023-01-19fs: port ->getattr() to pass mnt_idmapChristian Brauner1-2/+2
2023-01-19fs: port ->setattr() to pass mnt_idmapChristian Brauner1-3/+3
2022-09-08kernel/sysctl.c: move sysctl_vals and sysctl_long_vals to sysctl.cLiu Shixin1-7/+0
2022-09-08proc: remove initialization assignmentLi zeming1-1/+1
2022-05-26Merge tag 'sysctl-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-39/+50
2022-05-04memcg: accounting for objects allocated for new netdeviceVasily Averin1-1/+1
2022-05-03net: sysctl: introduce sysctl SYSCTL_THREETonghao Zhang1-1/+1
2022-04-25sysctl: minor cleanup in new_dir()Vasily Averin1-1/+0
2022-04-21fs/proc: Introduce list_for_each_table_entry for proc sysctlMeng Tang1-38/+50
2022-01-22kernel/sysctl.c: rename sysctl_init() to sysctl_init_bases()Luis Chamberlain1-2/+2
2022-01-22sysctl: add and use base directory declarer and registration helperLuis Chamberlain1-0/+9
2022-01-22sysctl: move maxolduid as a sysctl specific constLuis Chamberlain1-1/+1
2022-01-22sysctl: share unsigned long const valuesLuis Chamberlain1-0/+3
2022-01-22sysctl: add helper to register a sysctl mount pointLuis Chamberlain1-0/+14
2022-01-22sysctl: move some boundary constants from sysctl.c to sysctl_valsXiaoming Ni1-1/+1
2022-01-22sysctl: add a new register_sysctl_init() interfaceXiaoming Ni1-0/+33
2022-01-20sysctl: remove redundant ret assignmentluo penghao1-1/+0
2022-01-20sysctl: fix duplicate path separator in printed entriesGeert Uytterhoeven1-4/+4
2021-07-03Merge branch 'work.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-1/+1
2021-05-06proc/sysctl: fix function name error in commentszhouchuangao1-1/+1
2021-04-29Merge tag 'kbuild-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/mas...Linus Torvalds1-6/+1
2021-04-25sysctl: use min() helper for namecmp()Masahiro Yamada1-6/+1
2021-04-07switch file_open_root() to struct pathAl Viro1-1/+1
2021-03-25sysctl: add proc_dou8vec_minmax()Eric Dumazet1-0/+6
2021-02-26proc: use kvzalloc for our kernel bufferJosef Bacik1-2/+2
2021-02-23Merge tag 'idmapped-mounts-v5.12' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-6/+9
2021-01-24proc_sysctl: fix oops caused by incorrect command parametersXiaoming Ni1-1/+6
2021-01-24fs: make helpers idmap mount awareChristian Brauner1-3/+6
2021-01-24stat: handle idmapped mountsChristian Brauner1-1/+1
2021-01-24attr: handle idmapped mountsChristian Brauner1-2/+2
2020-09-08sysctl: Convert to iter interfacesMatthew Wilcox (Oracle)1-24/+24
2020-07-03Call sysctl_head_finish on errorMatthew Wilcox (Oracle)1-3/+3
2020-06-10Merge branch 'work.sysctl' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-0/+4
2020-06-10sysctl: reject gigantic reads/write to sysctl filesChristoph Hellwig1-0/+4
2020-06-08kernel/watchdog.c: convert {soft/hard}lockup boot parameters to sysctl aliasesGuilherme G. Piccoli1-2/+5
2020-06-08kernel/hung_task convert hung_task_panic boot parameter to sysctlVlastimil Babka1-0/+1
2020-06-08kernel/sysctl: support handling command line aliasesVlastimil Babka1-7/+41
2020-06-08kernel/sysctl: support setting sysctl parameters from kernel command lineVlastimil Babka1-0/+107
2020-04-27sysctl: pass kernel pointers to ->proc_handlerChristoph Hellwig1-18/+29
2020-02-24proc: Use d_invalidate in proc_prune_siblings_dcacheEric W. Biederman1-4/+4
2020-02-20proc: Generalize proc_sys_prune_dcache into proc_prune_siblings_dcacheEric W. Biederman1-34/+1
2020-02-20proc: Rename in proc_inode rename sysctl_inodes sibling_inodesEric W. Biederman1-4/+4
2020-02-04proc: decouple proc from VFS with "struct proc_ops"Alexey Dobriyan1-1/+1
2019-07-18proc/sysctl: add shared variables for range checkMatteo Croce1-0/+4
2019-07-16fs/proc/proc_sysctl.c: fix the default values of i_uid/i_gid on /proc/sys ino...Radoslaw Burny1-0/+4
2019-05-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-2/+4
2019-04-26fs/proc/proc_sysctl.c: Fix a NULL pointer dereferenceYueHaibing1-2/+4
2019-04-12bpf: Add file_pos field to bpf_sysctl ctxAndrey Ignatov1-1/+1
2019-04-12bpf: Introduce bpf_sysctl_{get,set}_new_value helpersAndrey Ignatov1-5/+17
2019-04-12bpf: Sysctl hookAndrey Ignatov1-0/+5
2019-03-29fs/proc/proc_sysctl.c: fix NULL pointer dereference in put_linksYueHaibing1-1/+2
2018-12-13proc/sysctl: don't return ENOMEM on lookup when a table is unregisteringIvan Delalande1-7/+6
2018-06-12treewide: kzalloc() -> kcalloc()Kees Cook1-1/+1
2018-05-26switch the rest of procfs lookups to d_splice_alias()Al Viro1-3/+12
2018-04-11fs/proc/proc_sysctl.c: fix typo in sysctl_check_table_array()Waiman Long1-1/+1
2018-04-11fs/proc/proc_sysctl.c: remove redundant link check in proc_sys_link_fill_cache()Danilo Krummrich1-6/+3
2018-04-11fs/proc/proc_sysctl.c: fix potential page fault while unregistering sysctl tableDanilo Krummrich1-0/+3
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-2/+2
2017-11-27fs: annotate ->poll() instancesAl Viro1-2/+2
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-07-13Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-5/+21
2017-07-12sysctl: add unsigned int range supportLuis R. Rodriguez1-1/+3
2017-07-12sysctl: simplify unsigned int supportLuis R. Rodriguez1-0/+14
2017-07-12sysctl: fix lax sysctl_check_table() sanity checkLuis R. Rodriguez1-5/+5
2017-07-11proc: Fix proc_sys_prune_dcache to hold a sb referenceEric W. Biederman1-13/+30
2017-05-05Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-4/+0
2017-04-16sysctl: Remove dead register_sysctl_rootEric W. Biederman1-4/+0
2017-04-07sysctl: add sanity check for proc_douintvecLiping Zhang1-0/+1
2017-03-03Merge branch 'rebased-statx' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-2/+3
2017-03-02statx: Add a system call to make enhanced file info availableDavid Howells1-2/+3
2017-03-02sched/headers: Prepare to remove <linux/cred.h> inclusion from <linux/sched.h>Ingo Molnar1-0/+1
2017-02-22proc/sysctl: Don't grab i_lock under sysctl_lock.Eric W. Biederman1-13/+18
2017-02-13proc/sysctl: prune stale dentries during unregisteringKonstantin Khlebnikov1-16/+43
2017-01-10sysctl: Drop reference added by grab_header in proc_sys_readdirZhou Chengming1-1/+2
2016-10-10Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2016-10-10Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2016-10-06Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-7/+7
2016-09-27fs: Replace CURRENT_TIME with current_time() for inode timestampsDeepa Dinamani1-1/+1
2016-09-22fs: Give dentry to inode_change_ok() instead of inodeJan Kara1-1/+1
2016-08-18Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-2/+2
2016-08-14net: make net namespace sysctls belong to container's ownerDmitry Torokhov1-0/+5
2016-08-08sysctl: Stop implicitly passing current into sysctl_table_root.lookupEric W. Biederman1-7/+7
2016-08-07Merge branch 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-1/+1
2016-08-06Merge branch 'work.const-qstr' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-1/+1
2016-07-31get rid of 'parent' argument of ->d_compare()Al Viro1-1/+1
2016-07-30qstr: constify instances in procfsAl Viro1-1/+1
2016-06-10vfs: make the string hashes salt the hashLinus Torvalds1-1/+1
2016-05-02switch all procfs directories ->iterate_shared()Al Viro1-1/+1
2016-05-02proc_sys_fill_cache(): switch to d_alloc_parallel()Al Viro1-7/+8
2015-09-29fs: Drop unlikely before IS_ERR(_OR_NULL)Viresh Kumar1-1/+1
2015-07-01sysctl: Allow creating permanently empty directories that serve as mountpoints.Eric W. Biederman1-0/+37
2015-04-15VFS: normal filesystems (and lustre): d_inode() annotationsDavid Howells1-6/+6
2014-08-08sysctl: remove typedef ctl_tableJoe Perches1-1/+1
2013-06-29Don't pass inode to ->d_hash() and ->d_compare()Linus Torvalds1-3/+4
2013-06-29[readdir] convert procfsAl Viro1-44/+27
2013-02-27fs/proc: clean up printksAndrew Morton1-9/+10
2013-02-22new helper: file_inode(file)Al Viro1-2/+2
2012-12-20procfs: drop vmtruncateMarco Stornelli1-7/+0
2012-11-18sysctl: Pass useful parameters to sysctl permissionsEric W. Biederman1-4/+5
2012-10-09rbtree: fix incorrect rbtree node insertion in fs/proc/proc_sysctl.cMichel Lespinasse1-0/+1
2012-10-09rbtree: empty nodes have no colorMichel Lespinasse1-3/+1
2012-10-06proc_sysctl.c: use BUG_ON instead of BUGPrasad Joshi1-2/+1
2012-09-17fs/proc: fix potential unregister_sysctl_table hangFrancesco Ruggeri1-3/+2
2012-07-14stop passing nameidata to ->lookup()Al Viro1-1/+1
2012-07-14stop passing nameidata * to ->d_revalidate()Al Viro1-2/+2
2012-05-15userns: Convert sysctl permission checks to use kuid and kgids.Eric W. Biederman1-2/+2
2012-03-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/sysctlLinus Torvalds1-76/+1198
2012-03-22sysctl: protect poll() in entries that may go awayLucas De Marchi1-1/+16
2012-02-14security: trim security.hAl Viro1-0/+2
2012-02-01sysctl: Don't call sysctl_follow_link unless we are a link.Eric W. Biederman1-12/+12
2012-02-01sysctl: Comments to make the code clearer.Eric W. Biederman1-0/+16
2012-02-01sysctl: Correct error return from get_subdirEric W. Biederman1-1/+4
2012-02-01sysctl: An easier to read version of find_subdirEric W. Biederman1-3/+3
2012-01-30sysctl: fix memset parameters in setup_sysctl_set()Dan Carpenter1-1/+1
2012-01-30sysctl: remove an unused variableDan Carpenter1-2/+0
2012-01-24sysctl: Add register_sysctl for normal sysctl usersEric W. Biederman1-0/+17
2012-01-24sysctl: Index sysctl directories with rbtrees.Eric W. Biederman1-90/+134
2012-01-24sysctl: Make the header lists per directory.Eric W. Biederman1-17/+11
2012-01-24sysctl: Move sysctl_check_dups into insert_headerEric W. Biederman1-9/+11
2012-01-24sysctl: Modify __register_sysctl_paths to take a set instead of a root and an...Eric W. Biederman1-18/+12
2012-01-24sysctl: Replace root_list with links between sysctl_table_sets.Eric W. Biederman1-102/+295
2012-01-24sysctl: Add sysctl_print_dir and use it in get_subdirEric W. Biederman1-1/+10
2012-01-24sysctl: Stop requiring explicit management of sysctl directoriesEric W. Biederman1-199/+143
2012-01-24sysctl: Add a root pointer to ctl_table_setEric W. Biederman1-0/+3
2012-01-24sysctl: Rewrite proc_sys_readdir in terms of first_entry and next_entryEric W. Biederman1-36/+62
2012-01-24sysctl: Rewrite proc_sys_lookup introducing find_entry and lookup_entry.Eric W. Biederman1-26/+76
2012-01-24sysctl: Normalize the root_table data structure.Eric W. Biederman1-4/+11
2012-01-24sysctl: Factor out insert_header and erase_headerEric W. Biederman1-3/+13
2012-01-24sysctl: Factor out init_header from __register_sysctl_pathsEric W. Biederman1-8/+17
2012-01-24sysctl: Initial support for auto-unregistering sysctl tables.Eric W. Biederman1-9/+19
2012-01-24sysctl: A more obvious version of grab_header.Eric W. Biederman1-4/+4
2012-01-24sysctl: Remove the now unused ctl_table parent field.Eric W. Biederman1-11/+1
2012-01-24sysctl: Improve the sysctl sanity checksEric W. Biederman1-136/+86
2012-01-24sysctl: register only tables of sysctl filesEric W. Biederman1-18/+147
2012-01-24sysctl: Add ctl_table chains into cstring pathsEric W. Biederman1-0/+9
2012-01-24sysctl: Add support for register sysctl tables with a normal cstring path.Eric W. Biederman1-10/+84
2012-01-24sysctl: Create local copies of directory names used in pathsEric W. Biederman1-3/+8
2012-01-24sysctl: Remove the unnecessary sysctl_set parent concept.Eric W. Biederman1-3/+8
2012-01-24sysctl: Implement retire_sysctl_setEric W. Biederman1-0/+4
2012-01-24sysctl: Make the directories have nlink == 1Eric W. Biederman1-1/+0
2012-01-24sysctl: Move the implementation into fs/proc/proc_sysctl.cEric W. Biederman1-0/+622
2012-01-24sysctl: Register the base sysctl table like any other sysctl table.Eric W. Biederman1-1/+2
2012-01-24sysctl: remove impossible condition checkLucas De Marchi1-12/+2
2011-11-02Merge branch 'akpm' (Andrew's incoming - part two)Linus Torvalds1-0/+46