summaryrefslogtreecommitdiff
path: root/libdiskfs/file-exec.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-09-19 19:25:39 +0000
committerMiles Bader <miles@gnu.org>1997-09-19 19:25:39 +0000
commit479e567d1a682ba6c771247a67378776da34e3ad (patch)
tree133e337c515e7a8b868e0a139322b84ef49a3b34 /libdiskfs/file-exec.c
parent26e0b3de335b5921868d0029483823e1b151a39d (diff)
(diskfs_S_file_exec):
Prepend "_diskfs" to uses of NOSUID & NOEXEC.
Diffstat (limited to 'libdiskfs/file-exec.c')
-rw-r--r--libdiskfs/file-exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/file-exec.c b/libdiskfs/file-exec.c
index 1c6f6f70..b3eead43 100644
--- a/libdiskfs/file-exec.c
+++ b/libdiskfs/file-exec.c
@@ -71,7 +71,7 @@ diskfs_S_file_exec (struct protid *cred,
gid = np->dn_stat.st_uid;
mutex_unlock (&np->lock);
- if (noexec)
+ if (_diskfs_noexec)
return EACCES;
if ((cred->po->openstat & O_EXEC) == 0)
@@ -86,7 +86,7 @@ diskfs_S_file_exec (struct protid *cred,
suid = mode & S_ISUID;
sgid = mode & S_ISGID;
- if (!nosuid && (suid || sgid))
+ if (!_diskfs_nosuid && (suid || sgid))
{
int secure = 0;
error_t get_file_ids (struct idvec *uids, struct idvec *gids)