aboutsummaryrefslogtreecommitdiffstats
path: root/fs/open.c
AgeCommit message (Expand)AuthorFilesLines
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
2012-10-12vfs: define struct filename and have getname() return itJeff Layton1-2/+2
2012-10-12audit: set the name_len in audit_inode for parent lookupsJeff Layton1-2/+2
2012-10-02Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-100/+30
2012-10-02Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-1/+1
2012-09-26switch simple cases of fget_light to fdgetAl Viro1-34/+30
2012-09-26switch fchmod(2) to fget_light()Al Viro1-7/+5
2012-09-26switch fallocate(2) to fget_light()Al Viro1-3/+3
2012-09-26switch ftruncate(2) to fget_lightAl Viro1-5/+5
2012-09-26don't leak O_CLOEXEC into ->f_flagsAl Viro1-1/+1
2012-09-26take descriptor-related part of close() to file.cAl Viro1-21/+1
2012-09-26move put_unused_fd() and fd_install() to fs/file.cAl Viro1-44/+0
2012-09-21userns: Teach security_path_chown to take kuids and kgidsEric W. Biederman1-1/+1
2012-08-15vfs: canonicalize create mode in build_open_flags()Miklos Szeredi1-3/+4
2012-08-04missed mnt_drop_write() in do_dentry_open()Al Viro1-1/+1
2012-07-31fs: Protect write paths by sb_start_write - sb_end_writeJan Kara1-1/+6
2012-07-31fs: Add freezing handling to mnt_want_write() / mnt_drop_write()Jan Kara1-1/+1
2012-07-29take grabbing f->f_path to do_dentry_open()Al Viro1-4/+2
2012-07-23switch dentry_open() to struct path, make it grab references itselfAl Viro1-12/+5
2012-07-14VFS: Make chown() and lchown() call fchownat()David Howells1-34/+7
2012-07-14do_dentry_open(): close the race with mark_files_ro() in failure exitAl Viro1-1/+1
2012-07-14do_dentry_open(): take initialization of file->f_path to callerAl Viro1-14/+12
2012-07-14fold __dentry_open() into its sole callerAl Viro1-21/+12
2012-07-14switch do_dentry_open() to returning intAl Viro1-20/+20
2012-07-14make finish_no_open() return intAl Viro1-1/+2
2012-07-14kill struct opendataAl Viro1-9/+11
2012-07-14kill opendata->{mnt,dentry}Al Viro1-3/+3
2012-07-14don't modify od->filp at allAl Viro1-3/+2
2012-07-14->atomic_open() prototype change - pass int * instead of bool *Al Viro1-2/+5
2012-07-14vfs: remove open intents from nameidataMiklos Szeredi1-85/+2
2012-07-14vfs: add i_op->atomic_open()Miklos Szeredi1-0/+42
2012-07-07vfs: make O_PATH file descriptors usable for 'fchdir()'Linus Torvalds1-3/+3
2012-06-01vfs: nameidata_to_filp(): don't throw away file on errorMiklos Szeredi1-3/+5
2012-06-01vfs: nameidata_to_filp(): inline __dentry_open()Miklos Szeredi1-2/+18
2012-06-01vfs: do_dentry_open(): don't put filpMiklos Szeredi1-1/+2
2012-06-01vfs: split __dentry_open()Miklos Szeredi1-14/+33
2012-05-23Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-3/+13
2012-05-03userns: Convert user specfied uids and gids in chown into kuids and kgidEric W. Biederman1-2/+11
2012-05-03userns: Convert capabilities related permsion checksEric W. Biederman1-1/+2
2012-04-09SELinux: rename dentry_open to file_openEric Paris1-1/+1
2012-02-19Wrap accesses to the fd_sets in struct fdtableDavid Howells1-2/+2
2012-01-06switch security_path_chmod() to struct path *Al Viro1-1/+1
2012-01-03switch open and mkdir syscalls to umode_tAl Viro1-6/+6
2012-01-03switch sys_chmod()/sys_fchmod()/sys_fchmodat() to umode_tAl Viro1-3/+3
2012-01-03vfs: mnt_drop_write_file()Al Viro1-1/+1
2011-10-28leases: fix write-open/read-lease raceJ. Bruce Fields1-0/+4
2011-07-26merge fchmod() and fchmodat() guts, kill ancient broken kludgeAl Viro1-50/+28
2011-07-22vfs: use ERR_CAST for err-ptr tossing in lookup_instantiate_filpKonstantin Khlebnikov1-1/+1
2011-03-21fs: Use BUG_ON(!mnt) at dentry_open().Tetsuo Handa1-11/+2
2011-03-16Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmo...Linus Torvalds1-1/+2
2011-03-16Merge branch 'next' into for-linusJames Morris1-1/+2
2011-03-15readlinkat(), fchownat() and fstatat() with empty relative pathnamesAl Viro1-4/+6
2011-03-15New kind of open files - "location only".Al Viro1-6/+29
2011-03-14open-style analog of vfs_path_lookup()Al Viro1-0/+14
2011-03-14switch do_filp_open() to struct open_flagsAl Viro1-1/+72
2011-03-10Check for immutable/append flag in fallocate pathMarco Stornelli1-0/+8
2011-03-08Merge branch 'master'; commit 'v2.6.38-rc7' into nextJames Morris1-3/+10
2011-02-11Fix possible filp_cachep memory corruptionLinus Torvalds1-0/+2
2011-02-10IMA: maintain i_readcount in the VFS layerMimi Zohar1-1/+2