aboutsummaryrefslogtreecommitdiffstats
path: root/fs/open.c
AgeCommit message (Expand)AuthorFilesLines
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
2014-04-20Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-12/+9
2014-04-12Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-52/+16
2014-04-12fs: disallow all fallocate operation on active swapfileLukas Czerner1-0/+7
2014-04-12fs: move falloc collapse range check into the filesystem methodsLukas Czerner1-8/+0
2014-04-12fs: prevent doing FALLOC_FL_ZERO_RANGE on append only fileLukas Czerner1-4/+2
2014-04-04Merge tag 'xfs-for-linus-3.15-rc1' of git://oss.sgi.com/xfs/xfsLinus Torvalds1-3/+26
2014-04-01tidy do_dentry_open() up a bitAl Viro1-12/+10
2014-04-01mark struct file that had write access grabbed by open()Al Viro1-5/+4
2014-04-01fold __get_file_write_access() into its only callerAl Viro1-19/+6
2014-04-01get rid of DEBUG_WRITECOUNTAl Viro1-8/+0
2014-04-01don't bother with {get,put}_write_access() on non-regular filesAl Viro1-19/+7
2014-03-13fs: Introduce FALLOC_FL_ZERO_RANGE flag for fallocateLukas Czerner1-1/+6
2014-03-10vfs: atomic f_pos accesses as per POSIXLinus Torvalds1-0/+4
2014-02-24fs: Add new flag(FALLOC_FL_COLLAPSE_RANGE) for fallocateNamjae Jeon1-3/+21
2013-11-09locks: break delegations on any attribute modificationJ. Bruce Fields1-4/+18
2013-11-09get rid of s_files and files_lockAl Viro1-2/+0
2013-10-24file->f_op is never NULL...Al Viro1-2/+6
2013-09-16vfs: improve i_op->atomic_open() documentationMiklos Szeredi1-3/+18
2013-09-07Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-1/+1
2013-09-03switch fchmod() to fdgetAl Viro1-6/+5
2013-08-30userns: Kill nsown_capable it makes the wrong thing easyEric W. Biederman1-1/+1
2013-08-05fs: Fix file mode for O_TMPFILEAndy Lutomirski1-1/+1
2013-07-20allow O_TMPFILE to work with O_WRONLYAl Viro1-0/+2
2013-07-13Safer ABI for O_TMPFILEAl Viro1-2/+2
2013-06-29[O_TMPFILE] it's still short a few helpers, but infrastructure should be OK n...Al Viro1-5/+9
2013-06-29allow build_open_flags() to return an errorAl Viro1-21/+28
2013-03-03make SYSCALL_DEFINE<n>-generated wrappers do asmlinkage_protectAl Viro1-20/+4
2013-03-03teach SYSCALL_DEFINE<n> how to deal with long long/unsigned long longAl Viro1-25/+3
2013-03-03Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+2
2013-03-02Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-0/+15
2013-03-01cache the value of file_inode() in struct fileAl Viro1-1/+2
2013-02-26get_empty_filp()/alloc_file() leave both ->f_pos and ->f_version zeroAl Viro1-1/+0
2013-02-25fix compat truncate/ftruncateAl Viro1-0/+15
2013-02-22propagate error from get_empty_filp() to its callersAl Viro1-14/+13
2013-02-22new helper: file_inode(file)Al Viro1-3/+3
2012-12-20vfs: make fchownat retry once on ESTALE errorsJeff Layton1-0/+5
2012-12-20vfs: make fchmodat retry once on ESTALE errorsJeff Layton1-2/+7
2012-12-20vfs: have chroot retry once on ESTALE errorJeff Layton1-2/+7
2012-12-20vfs: have chdir retry lookup and call once on ESTALE errorJeff Layton1-2/+7
2012-12-20vfs: have faccessat retry once on an ESTALE errorJeff Layton1-2/+7
2012-12-20vfs: have do_sys_truncate retry once on an ESTALE errorJeff Layton1-1/+7
2012-12-20VFS: Make more complete truncate operation available to CacheFilesDavid Howells1-23/+27
2012-11-19vfs: Allow chroot if you have CAP_SYS_CHROOT in your user namespaceEric W. Biederman1-1/+1
2012-10-12vfs: make path_openat take a struct filename pointerJeff Layton1-4/+21