diff options
| author | David Howells <dhowells@redhat.com> | 2013-06-13 23:37:55 +0100 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2019-07-06 11:58:28 +0200 |
| commit | 578061a4297c09bf314e87240318db64f7854535 (patch) | |
| tree | 1c21fd993dca78c97fabba8b158e68f0645e475a /scripts | |
| parent | 333d35b1dfafbfb0e6df37517d9665b5bd6aad8e (diff) | |
SELinux: Institute file_path_has_perm()
Create a file_path_has_perm() function that is like path_has_perm() but
instead takes a file struct that is the source of both the path and the
inode (rather than getting the inode from the dentry in the path). This
is then used where appropriate.
This will be useful for situations like unionmount where it will be
possible to have an apparently-negative dentry (eg. a fallthrough) that is
open with the file struct pointing to an inode on the lower fs.
Change-Id: I1a8a8600834be737b724f1f94b8f5ab90cc62b76
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
