From 863981e96738983919de841ec669e157e6bdaeb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Sun, 11 Sep 2016 04:34:46 -0300 Subject: Linux-libre 4.7.1-gnu --- fs/aufs/vfsub.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fs/aufs/vfsub.h') diff --git a/fs/aufs/vfsub.h b/fs/aufs/vfsub.h index 291bfae7a..64fff0f0d 100644 --- a/fs/aufs/vfsub.h +++ b/fs/aufs/vfsub.h @@ -183,6 +183,12 @@ static inline unsigned int vfsub_file_flags(struct file *file) return flags; } +static inline int vfsub_file_execed(struct file *file) +{ + /* todo: direct access f_flags */ + return !!(vfsub_file_flags(file) & __FMODE_EXEC); +} + #if 0 /* reserved */ static inline void vfsub_file_accessed(struct file *h_file) { -- cgit v1.2.3