aboutsummaryrefslogtreecommitdiffstats
path: root/fs/open.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-12Merge tag 'lsm-pr-20240312' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+0
2024-03-11Merge tag 'for-6.9/io_uring-20240310' of git://git.kernel.dk/linuxLinus Torvalds1-25/+28
2024-02-15ima: Move to LSM infrastructureRoberto Sassu1-1/+0
2024-02-09Add do_ftruncate that truncates a struct fileTony Solomonik1-25/+28
2024-02-05filelock: split common fields into struct file_lock_coreJeff Layton1-1/+1
2024-01-08Merge tag 'vfs-6.8.rw' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfsLinus Torvalds1-38/+4
2024-01-08Merge tag 'vfs-6.8.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs...Linus Torvalds1-2/+3
2023-12-23fs: prepare for stackable filesystems backing file helpersAmir Goldstein1-38/+0
2023-12-21Merge branch 'vfs.file'Christian Brauner1-1/+1
2023-12-15cred: get rid of CONFIG_DEBUG_CREDENTIALSJens Axboe1-3/+0
2023-12-12fsnotify: optionally pass access range in file permission hooksAmir Goldstein1-0/+4
2023-12-12file: s/close_fd_get_file()/file_close_fd()/gChristian Brauner1-1/+1
2023-11-18fs: Clarify "non-RCY" in access_override_creds() commentBagas Sanjaya1-1/+2
2023-10-19fs: store real path instead of fake path in backing file f_pathAmir Goldstein1-12/+11
2023-10-19fs: get mnt_writers count for an open backing file's real pathAmir Goldstein1-6/+25
2023-09-11fs: rename __mnt_{want,drop}_write*() helpersAmir Goldstein1-1/+1
2023-08-28Merge tag 'v6.6-vfs.fchmodat2' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-4/+19
2023-08-28Merge tag 'v6.6-vfs.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-5/+26
2023-08-19fs: Fix kernel-doc warningsMatthew Wilcox (Oracle)1-2/+2
2023-08-08fs: use __fput_sync in close(2)Linus Torvalds1-3/+24
2023-08-06open: make RESOLVE_CACHED correctly test for O_TMPFILEAleksa Sarai1-1/+1
2023-07-28fchmodat2: add support for AT_EMPTY_PATHAleksa Sarai1-1/+3
2023-07-27fs: Add fchmodat2()Alexey Gladkov1-4/+17
2023-06-29Merge tag 'fsnotify_for_v6.5-rc1' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-1/+5
2023-06-26Merge tag 'v6.5/vfs.file' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-11/+65
2023-06-19fs: use backing_file container for internal files with "fake" f_pathAmir Goldstein1-12/+33
2023-06-19fs: use a helper for opening kernel internal filesAmir Goldstein1-0/+33
2023-06-12fsnotify: move fsnotify_open() hook into do_dentry_open()Amir Goldstein1-1/+5
2023-05-15fs: fix incorrect fmode_t castsMin-Hua Chen1-1/+1
2023-05-15fs/open.c: Fix W=1 kernel doc warningsAnuradha Weeraman1-10/+2
2023-03-22open: return EINVAL for O_DIRECTORY | O_CREATChristian Brauner1-5/+13
2023-02-27vfs: avoid duplicating creds in faccessat if possibleMateusz Guzik1-1/+37
2023-02-20Merge tag 'fs.v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/idma...Linus Torvalds1-2/+3
2023-02-20Merge tag 'fs.idmapped.v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-17/+18
2023-01-27fs: Use CHECK_DATA_CORRUPTION() when kernel bugs are detectedJann Horn1-2/+3
2023-01-19fs: port vfs{g,u}id helpers to mnt_idmapChristian Brauner1-4/+3
2023-01-19fs: port privilege checking helpers to mnt_idmapChristian Brauner1-3/+2
2023-01-19fs: port ->permission() to pass mnt_idmapChristian Brauner1-4/+2
2023-01-18fs: port vfs_*() helpers to struct mnt_idmapChristian Brauner1-9/+14
2023-01-11fs: remove locks_inodeJeff Layton1-1/+1
2023-01-11filelock: move file locking definitions to separate header fileJeff Layton1-0/+1
2022-12-13Merge tag 'landlock-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+1
2022-10-19security: Create file_truncate hook from path_truncate hookGünther Noack1-1/+1
2022-10-18attr: use consistent sgid stripping checksChristian Brauner1-4/+4
2022-10-06Merge tag 'pull-file' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfsLinus Torvalds1-7/+4
2022-09-20open: always initialize ownership fieldsTetsuo Handa1-0/+2
2022-08-16locks: fix TOCTOU race when granting write leaseAmir Goldstein1-7/+4
2022-08-03Merge tag 'pull-work.iov_iter-base' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-0/+1
2022-08-03Merge tag 'pull-work.lseek' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-0/+2
2022-07-16fs: remove no_llseekJason A. Donenfeld1-2/+0
2022-07-16fs: clear or set FMODE_LSEEK based on llseek functionJason A. Donenfeld1-0/+4
2022-06-26attr: port attribute changes to new typesChristian Brauner1-15/+45
2022-06-10keep iocb_flags() result cached in struct fileAl Viro1-0/+1
2022-05-31Merge tag 'riscv-for-linus-5.19-mw0' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-0/+24
2022-05-26Merge tag 'nfsd-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linuxLinus Torvalds1-0/+42
2022-05-23NFSD: Instantiate a struct file when creating a regular NFSv4 fileChuck Lever1-0/+42
2022-05-09VFS: add FMODE_CAN_ODIRECT file flagNeilBrown1-5/+4
2022-04-26riscv: compat: syscall: Add compat_sys_call_table implementationGuo Ren1-0/+24
2022-03-08fs: remove fs.f_write_hintChristoph Hellwig1-1/+0
2021-12-05fs: support mapped mounts of mapped filesystemsChristian Brauner1-3/+4
2021-12-03fs: use low-level mapping helpersChristian Brauner1-2/+2
2021-12-03fs: move mapping helpersChristian Brauner1-0/+1
2021-11-06Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-2/+14
2021-11-06mm, thp: fix incorrect unmap behavior for private pagesRongwei Wang1-1/+10
2021-11-06mm, thp: lock filemap when truncating page cacheRongwei Wang1-1/+4
2021-10-04audit: add OPENAT2 record to list "how" infoRichard Guy Briggs1-0/+2
2021-08-23fs: remove mandatory file locking supportJeff Layton1-6/+2
2021-07-03Merge branch 'work.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-2/+2
2021-07-02Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-2/+11
2021-06-30mm, thp: relax the VM_DENYWRITE constraint on file-backed THPsCollin Fijalkovich1-2/+11
2021-05-28open: don't silently ignore unknown O-flags in openat2()Christian Brauner1-3/+11
2021-04-07switch file_open_root() to struct pathAl Viro1-2/+2
2021-02-23Merge tag 'idmapped-mounts-v5.12' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-13/+22
2021-01-24open: handle idmapped mountsChristian Brauner1-4/+9
2021-01-24open: handle idmapped mounts in do_truncate()Christian Brauner1-7/+9
2021-01-24attr: handle idmapped mountsChristian Brauner1-3/+5
2021-01-24namei: make permission helpers idmapped mount awareChristian Brauner1-2/+2
2021-01-24fs: add file and path permissions helpersChristian Brauner1-3/+3
2021-01-04fs: expose LOOKUP_CACHED through openat2() RESOLVE_CACHEDJens Axboe1-0/+6
2020-12-15Merge branch 'exec-for-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-1/+1
2020-12-10file: Rename __close_fd to close_fd and remove the files parameterEric W. Biederman1-1/+1
2020-12-03openat2: reject RESOLVE_BENEATH|RESOLVE_IN_ROOTAleksa Sarai1-0/+4
2020-08-12exec: move S_ISREG() check earlierKees Cook1-6/+0
2020-08-07Merge branch 'hch.init_path' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-39/+39
2020-07-31init: add an init_eaccess helperChristoph Hellwig1-1/+1
2020-07-31init: add an init_chmod helperChristoph Hellwig1-2/+2
2020-07-31init: add an init_chown helperChristoph Hellwig1-1/+1
2020-07-31init: add an init_chroot helperChristoph Hellwig1-6/+1
2020-07-31init: add an init_chdir helperChristoph Hellwig1-6/+1
2020-07-31fs: remove ksys_fchmodChristoph Hellwig1-6/+1
2020-07-31fs: remove ksys_openChristoph Hellwig1-3/+8
2020-07-16fs: add a vfs_fchmod helperChristoph Hellwig1-2/+7
2020-07-16fs: add a vfs_fchown helperChristoph Hellwig1-12/+17
2020-06-17close_range: add CLOSE_RANGE_UNSHAREChristian Brauner1-4/+1
2020-06-17open: add close_range()Christian Brauner1-0/+20
2020-06-02Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-2/+1
2020-06-02vfs: track per-sb writeback errors and report them to syncfsJeff Layton1-2/+1
2020-05-14vfs: add faccessat2 syscallMiklos Szeredi1-8/+26
2020-05-14vfs: split out access_override_creds()Miklos Szeredi1-10/+24
2020-04-02Merge branch 'work.dotdot1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+3
2020-03-12cifs_atomic_open(): fix double-put on late allocation failureAl Viro1-3/+0
2020-02-27make build_open_flags() treat O_CREAT | O_EXCL as implying O_NOFOLLOWAl Viro1-1/+3
2020-01-20fs: make build_open_flags() available internallyJens Axboe1-3/+2
2020-01-18open: introduce openat2(2) syscallAleksa Sarai1-34/+113
2019-11-26Revert "vfs: properly and reliably lock f_pos in fdget_pos()"Linus Torvalds1-1/+5
2019-11-25vfs: properly and reliably lock f_pos in fdget_pos()Linus Torvalds1-5/+1
2019-09-26fs: remove unlikely() from WARN_ON() conditionDenis Efremov1-1/+1
2019-09-24mm,thp: avoid writes to file with THP in pagecacheSong Liu1-0/+8
2019-07-24access: avoid the RCU grace period for the temporary subjective credentialsLinus Torvalds1-0/+19
2019-05-21treewide: Add SPDX license identifier for missed filesThomas Gleixner1-0/+1
2019-05-06vfs: pass ppos=NULL to .read()/.write() of FMODE_STREAM filesKirill Smelkov1-2/+3
2019-04-06fs: stream_open - opener for stream-like files so that read and write can run...Kirill Smelkov1-0/+18
2019-03-29fs/open.c: allow opening only regular files during execve()Tetsuo Handa1-0/+6
2018-08-21Merge tag 'ovl-update-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-21/+23
2018-07-18Revert "vfs: do get_write_access() on upper layer of overlayfs"Miklos Szeredi1-13/+2
2018-07-18Revert "vfs: add flags to d_real()"Miklos Szeredi1-1/+1
2018-07-18Revert "ovl: don't allow writing ioctl on lower layer"Miklos Szeredi1-2/+2
2018-07-18vfs: don't open realMiklos Szeredi1-6/+1
2018-07-18vfs: make open_with_fake_path() not contribute to nr_filesMiklos Szeredi1-1/+1
2018-07-12new helper: open_with_fake_path()Al Viro1-0/+18
2018-07-12->atomic_open(): return 0 in all success casesAl Viro1-2/+2
2018-07-12getting rid of 'opened' argument of ->atomic_open() - part 1Al Viro1-2/+1
2018-07-12switch all remaining checks for FILE_OPENED to FMODE_OPENEDAl Viro1-7/+2
2018-07-12now we can fold open_check_o_direct() into do_dentry_open()Al Viro1-12/+5
2018-07-12fold put_filp() into fput()Al Viro1-8/+3
2018-07-12introduce FMODE_OPENEDAl Viro1-1/+2
2018-07-12security_file_open(): lose cred argumentAl Viro1-1/+1
2018-07-12get rid of cred argument of vfs_open() and do_dentry_open()Al Viro1-9/+6
2018-07-12pass ->f_flags value to alloc_empty_file()Al Viro1-5/+3
2018-07-12pass creds to get_empty_filp(), make sure dentry_open() passes the right credsAl Viro1-1/+1
2018-07-10make sure do_dentry_open() won't return positive as an errorAl Viro1-0/+2
2018-07-10turn filp_clone_open() into inline wrapper for dentry_open()Al Viro1-20/+0
2018-06-03Revert "fs: fold open_check_o_direct into do_dentry_open"Al Viro1-18/+26
2018-04-06Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-26/+18
2018-04-02fs: add ksys_fallocate() wrapper; remove in-kernel calls to sys_fallocate()Dominik Brodowski1-1/+6
2018-04-02fs: add ksys_truncate() wrapper; remove in-kernel calls to sys_truncate()Dominik Brodowski1-1/+1
2018-04-02fs: add ksys_open() wrapper; remove in-kernel calls to sys_open()Dominik Brodowski1-1/+1
2018-04-02fs: add ksys_close() wrapper; remove in-kernel calls to sys_close()Dominik Brodowski1-1/+0
2018-04-02fs: add ksys_ftruncate() wrapper; remove in-kernel calls to sys_ftruncate()Dominik Brodowski1-1/+1
2018-04-02fs: add do_fchownat(), ksys_fchown() helpers and ksys_{,l}chown() wrappersDominik Brodowski1-6/+17
2018-04-02fs: add do_faccessat() helper and ksys_access() wrapper; remove in-kernel cal...Dominik Brodowski1-2/+7
2018-04-02fs: add ksys_fchmod() and do_fchmodat() helpers and ksys_chmod() wrapper; rem...Dominik Brodowski1-3/+14
2018-04-02fs: add ksys_chdir() helper; remove in-kernel calls to sys_chdir()Dominik Brodowski1-1/+6
2018-04-02fs: add ksys_chroot() helper; remove-in kernel calls to sys_chroot()Dominik Brodowski1-1/+6
2018-03-28fs: fold open_check_o_direct into do_dentry_openChristoph Hellwig1-26/+18
2017-09-05ovl: don't allow writing ioctl on lower layerMiklos Szeredi1-2/+2
2017-09-04vfs: add flags to d_real()Miklos Szeredi1-2/+2
2017-07-07Merge tag 'for-linus-v4.13-2' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-0/+3
2017-07-06fs: new infrastructure for writeback error handling and reportingJeff Layton1-0/+3
2017-06-27fs: add fcntl() interface for setting/getting write life time hintsJens Axboe1-0/+1
2017-05-12Merge branch 'work.sane_pwd' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-6/+3
2017-05-10Merge branch 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-1/+2
2017-05-09Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-0/+6
2017-04-27fs: completely ignore unknown open flagsChristoph Hellwig1-0/+6
2017-04-21make sure that fchdir() won't accept referral points, etc.Al Viro1-6/+3
2017-04-20vfs: ftruncate check IS_APPEND() on real upper inodeAmir Goldstein1-1/+2
2017-04-17open: move compat syscalls from compat.cAl Viro1-0/+20
2017-02-07vfs: wrap write f_ops with file_{start,end}_write()Amir Goldstein1-2/+2
2017-02-07vfs: deny fallocate() on directoryAmir Goldstein1-6/+4
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-10-13Merge tag 'xfs-reflink-for-linus-4.9-rc1' of git://git.kernel.org/pub/scm/lin...Linus Torvalds1-0/+5
2016-10-11block: implement (some of) fallocate for block devicesDarrick J. Wong1-1/+2
2016-10-03vfs: add a FALLOC_FL_UNSHARE mode to fallocate to unshare a range of blocksDarrick J. Wong1-0/+5
2016-09-16vfs: do get_write_access() on upper layer of overlayfsMiklos Szeredi1-2/+13
2016-09-16locks: fix file locking on overlayfsMiklos Szeredi1-1/+1
2016-08-07Merge tag 'binfmt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+20
2016-06-30vfs: merge .d_select_inode() into .d_real()Miklos Szeredi1-4/+4
2016-05-17Merge branch 'work.const-path' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-3/+3
2016-05-17Merge branch 'ovl-fixes' into for-linusAl Viro1-8/+4
2016-05-10vfs: add vfs_select_inode() helperMiklos Szeredi1-8/+4
2016-05-02give readdir(2)/getdents(2)/etc. uniform exclusion with lseek()Al Viro1-1/+1
2016-03-30fs: add filp_clone_open APIJames Bottomley1-0/+20
2016-03-28constify chmod_common/security_path_chmodAl Viro1-1/+1
2016-03-28constify chown_common/security_path_chownAl Viro1-1/+1
2016-03-28constify vfs_truncate()Al Viro1-1/+1
2016-03-22fs/coredump: prevent fsuid=0 dumps into user-controlled directoriesJann Horn1-4/+2
2016-01-22wrappers for ->i_mutex accessAl Viro1-6/+6
2016-01-04don't carry MAY_OPEN in op->acc_modeAl Viro1-4/+1
2015-07-10vfs: Commit to never having exectuables on proc and sysfs.Eric W. Biederman1-1/+1
2015-06-23fs: Call security_ops->inode_killpriv on truncateJan Kara1-2/+4
2015-06-23vfs: add file_path() helperMiklos Szeredi1-0/+6
2015-06-19overlayfs: Make f_path always point to the overlay and f_inode to the underlayDavid Howells1-23/+26
2015-05-11VFS: Handle lower layer dentry/inode in pathwalkDavid Howells1-1/+1
2015-04-24Merge tag 'xfs-for-linus-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-2/+6
2015-04-11->aio_read and ->aio_write removedAl Viro1-2/+2
2015-04-11NFS: fix BUG() crash in notify_change() with patch to chown_common()Andrew Elble1-1/+1
2015-04-11drop bogus check in file_open_root()Al Viro1-3/+0
2015-03-25fs: Add support FALLOC_FL_INSERT_RANGE for fallocateNamjae Jeon1-2/+6
2015-02-17Merge branch 'getname2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro...Linus Torvalds1-2/+8
2015-02-16vfs: remove get_xip_memMatthew Wilcox1-4/+1
2015-01-23fs: create proper filename objects using getname_kernel()Paul Moore1-2/+8
2014-12-16Merge branch 'for-3.19' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-2/+3
2014-12-13fallocate: create FAN_MODIFY and IN_MODIFY eventsHeinrich Schuchardt1-0/+11
2014-11-19new helper: audit_file()Al Viro1-2/+2
2014-11-19merge nfs bugfixes into nfsd for-3.19 branchJ. Bruce Fields1-2/+21
2014-11-07VFS: Rename do_fallocate() to vfs_fallocate()Anna Schumaker1-2/+3
2014-10-24vfs: add i_op->dentry_open()Miklos Szeredi1-2/+21
2014-08-01vfs: fix check for fallocate on active swapfileEric Biggers1-3/+2
2014-05-06new methods: ->read_iter() and ->write_iter()Al Viro1-2/+4
2014-05-06replace checking for ->read/->aio_read presence with check in ->f_modeAl Viro1-0/+4