search for: s_isuid

Displaying 19 results from an estimated 19 matches for "s_isuid".

Did you mean: s_isgid
2006 Oct 31
0
6380036 zfs does not clear S_ISUID and S_ISGID bits on successful writes
Author: marks Repository: /hg/zfs-crypto/gate Revision: f89e0d54f3a2bec76fbda3e2097037a4bd3c6f21 Log message: 6380036 zfs does not clear S_ISUID and S_ISGID bits on successful writes 6388195 conflict of filesystem property of "aclinherit=secure" & ACE no_propagate 6389212 file_dac_search privilege is ineffective when traversing zfs mount point Files: update: usr/src/uts/common/fs/zfs/zfs_acl.c update: usr/src/uts/common/fs/...
1999 Aug 26
0
smbsh always segfaults
...e("/usr/local/bin/smbsh", ["smbsh"], [/* 37 vars */]) = 0 brk(0) = 0x8075e5c open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 5 fstat(5, {st_mode=S_IFDIR|S_ISUID|S_ISVTX|0371, st_size=0, ...}) = 0 mmap(0, 18920, PROT_READ, MAP_PRIVATE, 5, 0) = 0x40014000 close(5) = 0 open("/lib/libdl.so.2", O_RDONLY) = 5 fstat(5, {st_mode=0, st_size=0, ...}) = 0 read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096)...
2003 Feb 08
1
compare st_mode & 07777, or Aix dirs always differ
...printf(FERROR,"failed to set permissions on %s : %s\n", diff -r -X /home/roderick/.diff-exclude -u rsync-2.5.5/rsync.h rsync/rsync.h --- rsync-2.5.5/rsync.h Mon Mar 25 02:29:43 2002 +++ rsync/rsync.h Fri Feb 7 10:02:09 2003 @@ -488,9 +488,53 @@ #define STDERR_FILENO 2 #endif +#ifndef S_ISUID +#define S_ISUID 04000 +#endif +#ifndef S_ISGID +#define S_ISGID 02000 +#endif +#ifndef S_ISVTX +#define S_ISVTX 01000 +#endif +#ifndef S_IRWXU +#define S_IRWXU 00700 +#endif +#ifndef S_IRUSR +#define S_IRUSR 00400 +#endif #ifndef S_IWUSR -#define S_IWUSR 0200 +#define S_IWUSR 00200 +#endif +#ifnd...
2003 Feb 19
0
FW: compare st_mode & 07777, or Aix dirs always differ
...efault to ~0. I did some research and found that ALLPERMS is not in POSIX-96 or POSIX-01. Therefore, I don't think it is wise to use it in rsync, unless one were to write a full-bore configure test, and define it if it is not present. The POSIX-01 description of chmod() says that it changes S_ISUID, S_ISGID, S_ISVTX, and the file permission bits. My feeling is that it would be ok to use a mask of those 3 macros with 0777; any implementation that doesn't make the file permission bits the low-order 9 bits with their usual definition is insane. Actually, I think the original definition...
2004 Mar 05
2
Problem with --link-dest when syncing AIX to Linux
Hello, i'm using rsync 2.6.0 for daily-syncing some remote AIX 5.2 machine to a local linux (RH 7.3) with using the --link-dest option for saving space on incremental backups. Even if there are no changes on the AIX machine, all files are newly transferred on every new sync. My test scenario (actisi=remote aix machine, actisa=local linux machine): =====> Initial rsync [mma@actisa
2002 Mar 12
2
Patch: --drop-suid Remove suid/sgid from target files
...ver; +extern int am_sender; extern int always_checksum; +extern int drop_suid; extern int cvs_exclude; @@ -714,6 +716,10 @@ #ifdef HAVE_STRUCT_STAT_ST_RDEV file->rdev = st.st_rdev; #endif + + if (am_sender && drop_suid && S_ISREG(st.st_mode)) { + file->mode &= ~(S_ISUID | S_ISGID); + } #if SUPPORT_LINKS if (S_ISLNK(st.st_mode)) { diff -r --unified rsync-2.5.4pre1-orig/options.c rsync-2.5.4pre1/options.c --- rsync-2.5.4pre1-orig/options.c Thu Feb 28 09:49:57 2002 +++ rsync-2.5.4pre1/options.c Tue Mar 12 22:01:45 2002 @@ -31,6 +31,7 @@ int preserve_uid = 0; i...
2008 Jul 07
1
SIGPIPE in assorted apps after "yum update"
...me thing that happened to dhcpd. In both cases they applications work fine in debug mode when they don't attempt to fork, but quietly die when ran normally. A third set of apps, wrappers for the client part of torque (pbs_mom) do this: stat("/usr/local/sbin/pbs_iff", {st_mode=S_IFREG|S_ISUID|0755, st_size=21412, ...}) = 0 pipe([5, 6]) = 0 clone(Process 24068 attached (waiting for parent) Process 24068 resumed (parent 24067 ready) child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2aaaaad31ce0) = 24068 [pid 24067] close(6)...
2007 Apr 23
1
Error trying to mount NFS volume from kickstart in CentOS 5
The post section of the kickstart configuration file I have been using in CentOS4 looks like this: %post mount centosmirror:/var/www/html/ks /mnt /mnt/ks/post/post.sh > /root/post_install.log 2>&1 umount /mnt I tried to do my first CentOS 5 kickstart installation today using an identical post section, but the post install script did not run. After instrumenting the
2007 Apr 18
1
Linux Equivalent of SetFilePerm() api
Hi everyone, We are trying to port our own windows application to SUSE linux.Our application uses SetFilePerm() api defined in commondll.dll.We would like to know whether there is a linux equivalent of windows commondll.dll in wine... If not then what could be the possible alternative to make this api function exactly as it does in windows. Waiting for an early reply, Thanks and Regards,
2002 Jun 21
1
small security-related rsync extension
..._links; X+ extern int priv_backups; X+ X+ #ifdef HAVE_CHMOD X+ static int strip_perm(char *fname) X+ { X+ struct stat buf; X+ if (link_stat(fname,&buf) != 0) { X+ rprintf(FERROR,"stat failed\n"); X+ return 0; X+ } X+ X+ if (S_ISREG(buf.st_mode) && (buf.st_mode & (S_ISUID | S_ISGID))) { X+ mode_t new_mode; X+ new_mode = buf.st_mode & 01777; X+ if (do_chmod(fname,new_mode) != 0) { X+ rprintf(FERROR,"chmod failed\n"); X+ return 0; X+ } X+ } X+ return 1; X+ } X+ #endif X X /* simple backup creates a backup with a suffix in the same dire...
1999 Oct 18
1
Problem with sticky bit and free space
Hello, I have two little problems with samba: 1st. Samba is not setting the sticky bit anymore !!! I have a share that look like this: [publico] comment = Arquivos publicos path = /home/publicos public = yes writable = yes force directory mode = 1777 create mask = 0664 With samba 1.9.x it was ok, the directories was being created with the correct permission (drwxrwxrwt), but since I
2014 Mar 17
1
internal-sftp stuck on 'ls' with chrootdirectory
..., [1], NULL, NULL) = 1 (out [1]) write(1, "\0\0\0\rf\0\0\177t\0\0\0\4\0\0\0\0", 17) = 17 select(2, [0], [], NULL, NULL) = 1 (in [0]) read(0, "\0\0\0\r\f\0\0\177u\0\0\0\4\0\0\0\0", 16384) = 17 getdents(3, /* 5 entries */, 32768) = 144 lstat("/htdocs/.", {st_mode=S_IFDIR|S_ISUID|0750, st_size=52, ...}) = 0 stat("/etc/localtime", 0x7ffffaef12c0) = -1 ENOENT (No such file or directory) open("/etc/localtime", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/passwd", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) geteuid()...
2000 Aug 18
0
[PATCH] Support symlinks in scp of openssh 2
...& S_IFMT) { + case S_IFLNK: + /* readlink later */ + break; case S_IFREG: + if (fd < 0 && (fd = open(name, O_RDONLY, 0)) < 0) + goto syserr; break; case S_IFDIR: @@ -586,6 +606,7 @@ syserr: run_err("%s: %s", name, strerr } #define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO) - (void) sprintf(buf, "C%04o %lu %s\n", - (unsigned int) (stb.st_mode & FILEMODEMASK), + (void) sprintf(buf, "%c%04o %lu %s\n", + ((stb.st_mode & S_IFMT) == S_IFLNK) ? 'L' : 'C', + (unsigned int)...
2009 May 29
1
[PATCH v2] klibc-utils: add simple ls
...9;s'); break; + case S_IFREG: putchar('-'); break; + default: putchar('?'); break; + } + putchar(STAT_ISSET(st->st_mode, S_IRUSR) ? 'r' : '-'); + putchar(STAT_ISSET(st->st_mode, S_IWUSR) ? 'w' : '-'); + + !STAT_ISSET(st->st_mode, S_ISUID) ? + putchar(STAT_ISSET(st->st_mode, S_IXUSR) ? 'x' : '-') : + putchar('S'); + + putchar(STAT_ISSET(st->st_mode, S_IRGRP) ? 'r' : '-'); + putchar(STAT_ISSET(st->st_mode, S_IWGRP) ? 'w' : '-'); + + !STAT_ISSET(st->st_mode, S_ISGID...
2009 May 28
1
[PATCH] klibc-utils: add minils
...rintf("-"); break; + default: printf("?"); break; + } + printf ("%s%s", + STAT_ISSET(st->st_mode, S_IRUSR) ? "r" : "-", + STAT_ISSET(st->st_mode, S_IWUSR) ? "w" : "-"); + + !STAT_ISSET(st->st_mode, S_ISUID) ? + printf ("%s", STAT_ISSET(st->st_mode, S_IXUSR) ? "x" : "-") : + printf ("S"); + + printf ("%s%s", + STAT_ISSET(st->st_mode, S_IRGRP) ? "r" : "-", + STAT_ISSET(st->st_mode, S_IWGRP) ? "w"...
1999 Jul 02
1
preexec: return code not used? (PR#18576)
T.D.Lee@durham.ac.uk wrote: > > > But we'd like to go one step further and have the return code from preexec > be used to continue or abort the connection being established. The script > above would be modified to generate this return code. > > Looking through the source code (smbd/service.c), it doesn't seem to check > the return code (calling smbrun to do the
2002 Jul 13
0
[PATCH]: scp program improved
...for (indx = 0; indx < argc; ++indx) { name = argv[indx]; statbytes = 0; len = strlen(name); @@ -536,14 +581,19 @@ if (response() < 0) goto next; } + if (resume_mode) + c = 'R'; + else + c = 'C'; + #define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO) #ifdef HAVE_LONG_LONG_INT - snprintf(buf, sizeof buf, "C%04o %lld %s\n", + snprintf(buf, sizeof buf, "%c%04o %lld %s\n", c, (u_int) (stb.st_mode & FILEMODEMASK), (long long)stb.st_size, last); #else /* XXX: Handle integer...
2007 Jan 11
2
FreeBSD Security Advisory FreeBSD-SA-07:01.jail
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ============================================================================= FreeBSD-SA-07:01.jail Security Advisory The FreeBSD Project Topic: Jail rc.d script privilege escalation Category: core Module: etc_rc.d Announced:
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...#define XFS_DIR2_NULL_DATAPTR ((uint32_t)0) + +/* File types and modes */ +#define S_IFMT 00170000 +#define S_IFSOCK 0140000 +#define S_IFLNK 0120000 +#define S_IFREG 0100000 +#define S_IFBLK 0060000 +#define S_IFDIR 0040000 +#define S_IFCHR 0020000 +#define S_IFIFO 0010000 +#define S_ISUID 0004000 +#define S_ISGID 0002000 +#define S_ISVTX 0001000 + +#define MAXPATHLEN 1024 +/* + * NOTE: The fields in the superblock are stored in big-endian format on disk. + */ +typedef struct xfs_sb { + uint32_t sb_magicnum; /* magic number == XFS_SB_MAGIC */ + uint32_t sb_blocksize; /* l...