search for: r_ok

Displaying 20 results from an estimated 207 matches for "r_ok".

2010 Jul 21
3
smbd -D hangs
I'm testing both sunfreeware and official sun (sfw) samba on Solaris 10. For some reason since yesterday, the smbd process just "hangs" at the start. No log is generated on server side Where smbd is started, I can't find any open port on 139 or 145 My OS is Solaris 10 # uname -a SunOS labo2 5.10 Generic_142900-13 sun4v sparc SUNW,SPARC-Enterprise-T5120 #
2001 Jul 29
1
add version 2 identities by default, too
...ntf(dsa_name, sizeof dsa_name, "%s/%s", pw->pw_dir, _PATH_SSH_CLIENT_ID_DSA); + if (!pw) { + fprintf(stderr, "No user found with uid %u\n", + (u_int)getuid()); + ssh_close_authentication_connection(ac); + exit(1); + } else { + int identity_found = !access(identity_name, R_OK); + int rsa_found = !access(rsa_name, R_OK); + int dsa_found = !access(dsa_name, R_OK); + + if (!(identity_found || rsa_found || dsa_found)) { + fprintf(stderr, + "No files specified, and unable to find one of:\n%s\n%s\n%s\n", + + identity_name, + rsa_name, + dsa_name...
2017 Sep 12
2
Re: [PATCH v2 2/5] lib: qemu: Factor out common code for reading and writing cache files.
...es wrote: > +/** > + * Generic functions for reading and writing the cache files, used > + * where we are just reading and writing plain text strings. > + */ > +static int > +generic_read_cache (guestfs_h *g, const char *filename, char **strp) > +{ > + if (access (filename, R_OK) == -1 && errno == ENOENT) > + return 0; /* no cache, run the test instead */ This will go ahead if access() failed for any other error though; IMHO a better check could be: if (access (filename, R_OK) == -1) { if (errno == ENOENT) return 0;...
2014 Jun 12
2
[PATCH] fuse: UID 0 should override all permissions checks (RHBZ#1106548).
...++++++++--------------- 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/src/fuse.c b/src/fuse.c index dd63729..292ebee 100644 --- a/src/fuse.c +++ b/src/fuse.c @@ -301,21 +301,42 @@ mount_local_access (const char *path, int mask) fuse = fuse_get_context (); - if (mask & R_OK) - ok = ok && - ( fuse->uid == statbuf.st_uid ? statbuf.st_mode & S_IRUSR - : fuse->gid == statbuf.st_gid ? statbuf.st_mode & S_IRGRP - : statbuf.st_mode & S_IROTH); - if (mask & W_OK) - ok = ok && - ( fuse->uid == statbuf.st_u...
2016 May 17
2
[PATCH 0/2] Use -bios bios-fast.bin where supported.
NOTE: Not for upstream, yet. This depends on 3 non-upstream patches. - The qemu rework in libguestfs, which in turn depends on what Pino is up to. - Support for '-L ?' in qemu: https://lists.gnu.org/archive/html/qemu-devel/2016-05/threads.html#02596 - Support for bios-fast.bin in qemu: https://lists.gnu.org/archive/html/qemu-devel/2016-05/threads.html#02408 This commit
2016 May 18
2
[PATCH v2 0/2] Use -bios bios-fast.bin where supported.
This commit uses -bios bios-fast.bin if available, which basically stops SeaBIOS from trying to do PCI probing during boot, which is a waste of time when using the -kernel option. v1 -> v2: - Rebase on top of Pino's work. This still has 3 dependencies: - The qemu memoization work (v2). - Support for '-L ?' in qemu:
2008 Jan 17
1
convert plugin fails - drops root privileges then tries to create file in /
...essage: Emkdir_parents(/home/dump-capability/mail) failed: Permission denied -------------- next part -------------- execve("/usr/sbin/dovecot", ["/usr/sbin/dovecot"], [/* 16 vars */]) = 0 brk(0) = 0x8d46000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=21917, ...}) = 0 mmap2(NULL, 21917, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f22000 close(3) = 0 open("/lib/libc.so.6", O...
2005 Mar 15
1
Drac and Dovecot, almost there ...
.../usr/lib/dovecot/imap/drac.so being opened ... execve("/usr/sbin/dovecot", ["/usr/sbin/dovecot"], [/* 20 vars */]) = 0 uname({sys="Linux", node="masra.org", ...}) = 0 brk(0) = 0x8c85000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=28209, ...}) = 0 old_mmap(NULL, 28209, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6ff9000 close(3) = 0 open("/lib/libssl.so.4&qu...
2007 Aug 01
2
mbox inbox default
...include dovecot -n output at the bottom of this mail). mail_location is set accordingly for deliver. I'd assumed that if the /var/mail/$USER file doesn't exist, dovecot would create it, but we've discovered from experience (and I verified it in mbox-storage.c) that if access(path, R_OK|W_OK) fails--as it does if the file doesn't exist--that dovecot defaults then to delivering in root_dir/inbox. I'm curious why this is. It seems like if the configured INBOX file doesn't exist, dovecot should create it if possible; it's a different case than if, say, the user d...
2018 Jun 27
0
dovecot-2.3.36 and flush
...quot;], [/* 26 vars */]) = 0 brk(0)????????????????????????????????? = 0x126c000 access("/etc/ld.so.nohwcap", F_OK)????? = -1 ENOENT (No such file or directory) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7efe7ce00000 access("/etc/ld.so.preload", R_OK)????? = -1 ENOENT (No such file or directory) open("/usr/local/dovecot-2.2.36/lib/dovecot/tls/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/usr/local/dovecot-2.2.36/lib/dovecot/tls/x86_64", 0x7fff1ebbfed0) = -1 ENOENT (No such file or dire...
2001 Jun 07
2
Patch to enable multiple possible sources of entropy
...1 ! #define PRNGD_SOURCE 2 ! #define POOL_SOURCE 3 ! ! static int seed_source = 0; ! ! void ! init_rng(void) ! { ! check_openssl_version(); ! ! #ifdef RANDOM_POOL ! #if !defined(USE_PRNGD) && !defined(USE_BUILTIN_ENTROPY) ! seed_source = POOL_SOURCE; ! #else ! if (access(RANDOM_POOL, R_OK) == 0) { ! seed_source = POOL_SOURCE; ! return; ! } ! #endif ! #endif /* RANDOM_POOL */ ! ! /* it's not trivial to probe for an open port so just make it ! * take priority over the other sources if it is defined ! */ ! #ifdef PRNGD_PORT ! seed_source = PRNGD_SOURCE; ! #else ! ! #ifd...
2017 Sep 12
0
Re: [PATCH v2 2/5] lib: qemu: Factor out common code for reading and writing cache files.
...eneric functions for reading and writing the cache files, used > > + * where we are just reading and writing plain text strings. > > + */ > > +static int > > +generic_read_cache (guestfs_h *g, const char *filename, char **strp) > > +{ > > + if (access (filename, R_OK) == -1 && errno == ENOENT) > > + return 0; /* no cache, run the test instead */ > > This will go ahead if access() failed for any other error though; > IMHO a better check could be: > > if (access (filename, R_OK) == -1) { > if (errno ==...
2002 Jun 26
1
[Fwd: Kerberos buglet in OpenSSH-3.3p1]
Can anyone with Heimdal KrbV verify this? -------------- next part -------------- An embedded message was scrubbed... From: Dag-Erling Smorgrav <des at ofug.org> Subject: Kerberos buglet in OpenSSH-3.3p1 Date: 25 Jun 2002 14:52:10 +0200 Size: 1291 Url: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20020626/347e123e/attachment.mht
2016 May 25
4
[PATCH 0/4] qemu: Use sqlite to store qemu detection data.
Patches 1 & 2 were posted previously here: https://www.redhat.com/archives/libguestfs/2016-May/msg00134.html Patch 3 is a hack so I can test this using my own version of qemu (the `-L ?' stuff is not upstream). Patch 4 is where the real action takes place: Replace the caching of qemu features in blob-like files with a sqlite database. Probably the best way to approach this patch is to
2016 Feb 04
0
[PATCH] aarch64: Use a common table of AAVMF paths.
...nst char *codefile = uefi_firmware[i]; - const char *varsfile = uefi_firmware[i+1]; + for (i = 0; guestfs_int_aavmf_firmware[i] != NULL; i += 2) { + const char *codefile = guestfs_int_aavmf_firmware[i]; + const char *varsfile = guestfs_int_aavmf_firmware[i+1]; if (access (codefile, R_OK) == 0 && access (varsfile, R_OK) == 0) { CLEANUP_CMD_CLOSE struct command *copycmd = guestfs_int_new_command (g); @@ -495,6 +478,7 @@ guestfs_int_get_uefi (guestfs_h *g, char **code, char **vars) return 0; } } +#endif /* Not found. */ *code = *vars = NULL; diff...
2004 Jul 06
3
posix
mainly question for the intel folks, any chance to rerun the ltp testsuites to see how we are doing these days with all the changes ? thanks :) Wim
2011 Nov 02
1
winbind and getent again
...yes idmap config SGI:range = 50000-500000 I really don't see the problem the nss_winbind module might be having: # strace -e trace=file getent group execve("/usr/bin/getent", ["getent", "group"], [/* 40 vars */]) = 0 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 open("/lib64/libc.so.6", O_RDONLY) = 3 open("/usr/lib64/locale/locale-archive", O_RDONLY) = 3 open("/etc/nsswitch.conf", O_RDONLY) = 3 open("/etc/ld.so.cach...
2016 May 12
0
[PATCH 4/4] lib: qemu: Memoize qemu feature detection.
...ation == MEMO_GENERATION && + (uint64_t) statbuf.st_size == prev_size && + (uint64_t) statbuf.st_mtime == prev_mtime) { + /* Same binary as before, so read the previously cached qemu -help + * and qemu -devices ? output. + */ + if (access (qemu_help_filename, R_OK) == -1 || + access (qemu_devices_filename, R_OK) == -1) + goto do_test; + + debug (g, "loading previously cached test results"); + + data = safe_calloc (g, 1, sizeof *data); + + if (guestfs_int_read_whole_file (g, qemu_help_filename, +...
2005 Oct 11
3
dovecot won't launch
...bin/dovecot", ["dovecot"], [/* 17 vars */]) = 0 uname({sys="Linux", node="monkey", ...}) = 0 set_tid_address(0) = -1 ENOSYS (Function not implemented) brk(0) = 0x805eed0 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=24400, ...}) = 0 old_mmap(NULL, 24400, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000 close(3) = 0 open("/lib/libssl.so.4&q...
2015 Jan 21
0
[PATCH] aarch64: appliance: Use AAVMF (UEFI) if available for running the appliance.
...reed by the caller. + * + * If the function returns -1 then there was a real error which should + * cause appliance building to fail (no UEFI firmware is not an + * error). + */ +int +guestfs___get_uefi (guestfs_h *g, char **code, char **vars) +{ + if (access (AAVMF_DIR "/AAVMF_CODE.fd", R_OK) == 0 && + access (AAVMF_DIR "/AAVMF_VARS.fd", R_OK) == 0) { + CLEANUP_CMD_CLOSE struct command *copycmd = guestfs___new_command (g); + char *varst; + int r; + + /* Make a copy of AAVMF_VARS.fd. You can't just map it into the + * address space read-only a...