Home
last modified time | relevance | path

Searched refs:S_ISUID (Results 1 – 25 of 35) sorted by relevance

12

/openbsd/lib/libc/string/
H A Dstrmode.c76 switch (mode & (S_IXUSR | S_ISUID)) { in strmode()
83 case S_ISUID: in strmode()
86 case S_IXUSR | S_ISUID: in strmode()
/openbsd/bin/cp/
H A Dutils.c106 fs->st_mode & ~(S_ISTXT | S_ISUID | S_ISGID)); in copy_file()
179 (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) in copy_file()
181 fs->st_mode & (S_ISUID | S_ISGID) && fs->st_uid == myuid) { in copy_file()
281 fs->st_mode &= S_ISTXT | S_ISUID | S_ISGID | S_IRWXU | S_IRWXG | S_IRWXO; in setfile()
302 fs->st_mode &= ~(S_ISTXT | S_ISUID | S_ISGID); in setfile()
/openbsd/usr.sbin/pkg_add/OpenBSD/
H A DArcCheck.pm140 $result &= ~(S_ISUID|S_ISGID);
148 $o->{mode} & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID));
170 $o->{mode} &= ~(S_ISUID|S_ISGID);
241 $entry->{mode} = $entry->_strip_modes($item) & ~(S_ISUID|S_ISGID);
/openbsd/gnu/usr.bin/binutils-2.17/binutils/
H A Dfilemode.c218 #ifdef S_ISUID in setst()
219 if (bits & S_ISUID) in setst()
/openbsd/gnu/usr.bin/binutils/binutils/
H A Dfilemode.c230 #ifdef S_ISUID in setst()
231 if (bits & S_ISUID) in setst()
/openbsd/bin/mv/
H A Dmv.c293 (void) fchmod(to_fd, sbp->st_mode & ~(S_ISUID|S_ISGID)); in fastcopy()
311 if ((sbp->st_mode & (S_ISUID|S_ISGID))) { in fastcopy()
315 sbp->st_mode &= ~(S_ISUID|S_ISGID); in fastcopy()
H A Dcp.c450 fs->st_mode & ~(S_ISTXT | S_ISUID | S_ISGID)); in copy_file()
584 fs->st_mode &= S_ISTXT | S_ISUID | S_ISGID | S_IRWXU | S_IRWXG | S_IRWXO; in setfile()
605 fs->st_mode &= ~(S_ISTXT | S_ISUID | S_ISGID); in setfile()
/openbsd/sys/sys/
H A Dstat.h94 #define S_ISUID 0004000 /* set user id on execution */ macro
153 #define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
/openbsd/lib/libc/gen/
H A Dsetmode.c159 #define STANDARD_BITS (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO)
225 who |= S_ISUID|S_IRWXU; in setmode()
258 perm |= S_ISUID|S_ISGID; in setmode()
/openbsd/usr.sbin/mtree/
H A Dmtree.h60 #define MBITS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
/openbsd/gnu/usr.bin/binutils/include/mpw/
H A Dstat.h34 #define S_ISUID 0004000 /* set user id on execution */ macro
/openbsd/usr.bin/rdistd/
H A Dserver.c192 if (mode != -1 && IS_ON(mode, S_ISUID)) { in fchog()
196 mode &= ~S_ISUID; in fchog()
213 if (IS_ON(mode, S_ISUID) && in fchog()
215 mode &= ~S_ISUID; in fchog()
261 if (mode != -1 && IS_ON(mode, S_ISUID)) { in fchog()
264 mode &= ~S_ISUID; in fchog()
/openbsd/bin/mkdir/
H A Dmkdir.c82 if ((mode & (S_ISUID | S_ISGID | S_ISTXT)) == 0) { in main()
/openbsd/usr.bin/rsync/
H A Dreceiver.c90 mode &= ~(S_ISTXT | S_ISUID | S_ISGID); in rsync_set_metadata()
152 mode &= ~(S_ISTXT | S_ISUID | S_ISGID); in rsync_set_metadata_at()
/openbsd/bin/pax/
H A Dpax.h251 #define SETBITS (S_ISUID | S_ISGID)
/openbsd/gnu/usr.bin/perl/ext/Fcntl/
H A DMakefile.PL31 S_ISTXT S_ISUID S_ISVTX S_IWGRP S_IWOTH S_IWRITE
/openbsd/bin/ksh/
H A Dc_test.c258 (b1.st_mode & S_ISUID) == S_ISUID; in test_eval()
/openbsd/sys/stand/boot/
H A Dcmd.c486 lsrwx(sb->st_mode >> 6, (sb->st_mode & S_ISUID? "sS" : "x-")); in ls()
/openbsd/sys/arch/octeon/stand/rdboot/
H A Dcmd.c425 lsrwx(sb->st_mode >> 6, (sb->st_mode & S_ISUID? "sS" : "x-")); in ls()
/openbsd/sys/arch/powerpc64/stand/rdboot/
H A Dcmd.c425 lsrwx(sb->st_mode >> 6, (sb->st_mode & S_ISUID? "sS" : "x-")); in ls()
/openbsd/bin/test/
H A Dtest.c471 i = S_ISUID; in filstat()
/openbsd/gnu/usr.bin/perl/ext/POSIX/t/
H A Dexport.t69 S_ISGID S_ISLNK S_ISREG S_ISSOCK S_ISUID S_IWGRP S_IWOTH S_IWUSR S_IXGRP
/openbsd/libexec/security/
H A Dsecurity577 if (-f _ && $mode & (S_ISUID | S_ISGID)) {
/openbsd/usr.bin/compress/
H A Dmain.c818 fs->st_mode &= ~(S_ISUID|S_ISGID); in setfile()
/openbsd/usr.bin/find/
H A Dfunction.c1365 (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO); in f_perm()

12