search for: w_ok

Displaying 20 results from an estimated 37 matches for "w_ok".

Did you mean: r_ok
2014 Jun 12
2
[PATCH] fuse: UID 0 should override all permissions checks (RHBZ#1106548).
...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_uid ? statbuf.st_mode & S_IWUSR - : fuse->gid == statbuf.st_gid ? statbuf.st_mode & S_IWGRP - : statbuf.st_mode & S_IWOTH); - if (mask & X_OK) - ok = ok && - ( fuse->uid == statbuf.st_u...
2007 Aug 01
2
mbox inbox default
...ude 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 doesn&...
1998 Dec 08
1
Can't connect to shares w/2.0beta3 on OSF1
I was running 1.9.18p10 on a test DEC Unix 4.0d box here and I decided to give 2.0beta3 a try. For some reason, I cannot connect to any of the server's shares or even get a list of it's services (via Start->Run->\\server) from Win95 clients. It asks for a password and no matter what I put in there I get "The password is not correct. Try again." I configured Beta3 a la:
2019 Aug 21
3
CentOS 5 file system read only issue
Hello Everyone, We are using CentOS 5 system for certain application. Those are VM guests running in VMware. There is datastore issue occasionally, causing all file systems becoming read only file systems. So application stop working, and opened files cannot be written either. We cannot even ssh login to the system. Typically we had to power cycle the VM. We are trying to add reliability to the
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
2020 Mar 28
0
[klibc:update-dash] dash: builtin: Use test_access from NetBSD when faccessat is unavailable
...cess(const struct stat64 *, int); #endif #ifdef HAVE_FACCESSAT @@ -397,11 +396,11 @@ filstat(char *nm, enum token mode) switch (mode) { #ifndef HAVE_FACCESSAT case FILRD: - return test_st_mode(&s, R_OK); + return test_access(&s, R_OK); case FILWR: - return test_st_mode(&s, W_OK); + return test_access(&s, W_OK); case FILEX: - return test_st_mode(&s, X_OK); + return test_access(&s, X_OK); #endif case FILEXIST: return 1; @@ -537,53 +536,165 @@ static int test_file_access(const char *path, int mode) } #else /* HAVE_FACCESSAT */ /* - * Similar to what...
2010 Dec 07
1
dovecot-lda segfault
...) = 0 getuid() = 21189 geteuid() = 21189 access("/var/mail/mailboxes/users", X_OK) = 0 getuid() = 21189 geteuid() = 21189 access("/var/mail/mailboxes/users", W_OK) = -1 EACCES (Permission denied) geteuid() = 21189 getegid() = 21189 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ dovecot --version 2.0.8 (f9d34d929c3f) Micha Krause
2011 Oct 10
1
Convert-tool maildir > mbox
...mbox:/var/mail/example.com/user1-mbox alt_hierarchy_char=_ Error: Mailbox conversion: Couldn't create mailbox Sent/test: Mailbox doesn't allow inferior mailboxes Error: Internal failure Strace give show me a failure after : access("/var/mail/example.com/user1/.Sent.test/cur", W_OK) = 0 stat("/var/mail/example.com/user1-mbox/Sent/test", 0x7fff843e73b0) = -1 ENOTDIR (Not a directory) write(2, "Error: Mailbox conversion: Couldn"..., 103Error: Mailbox conversion: Couldn't create mailbox Sent/test: Mailbox doesn't allow inferior mailboxes ) = 103 ls...
2010 Jun 10
2
R: Re: Dovecot 2.0 shared mailbox using ACLs problem
...re/tmp", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 stat("/mnt/mbox1/mailusers/user2 at example.gov.it/Maildir/.myshare/dovecot- shared", 0x7fff8358bdc0) = -1 ENOENT (No such file or directory) access("/mnt/mbox1/mailusers/user2 at example.gov.it/Maildir/.myshare/cur", W_OK) = 0 open("/mnt/mbox1/mailusers/user2 at example.gov.it/Maildir/.myshare/dovecot.index. log", O_RDWR) = 9 fstat(9, {st_mode=S_IFREG|0600, st_size=640, ...}) = 0 pread(9, "\1\2 (\0\331\32\21L\2\0\0\0\1\0\0\0\0\0\0\0\331\32\21L\0\0\0\0\0\0\0\0"..., 40, 0) = 40 stat("/mnt/mb...
2006 Aug 21
1
[PATCH 3 of 6] dm-userspace internal libdmu support for userspace tool
...static char path[256]; + + if (get_dm_control_dev(dm_device, &ctl_major, &ctl_minor) < 0) + return NULL; + + if (ctl_major == 0) { + DPRINTF("Unable to get device number\n"); + return NULL; + } + + sprintf(path, "/dev/dmu%i", ctl_minor); + + if (access(path, R_OK | W_OK)) { + if (make_device_node(ctl_major, ctl_minor)) { + DPRINTF("Failed to create device node: %s", + strerror(errno)); + return NULL; + } + } + + return path; +} + +static uint32_t make_version(int maj, int min, int patch) +{ + return 0 | (maj << 16) | (min << 8) | pat...
2009 Jan 28
2
ZFS+NFS+refquota: full filesystems still return EDQUOT for unlink()
...utput file `bigfile'': Disk quota exceeded willm1 at chasca:~$ rm bigfile rm: cannot remove `bigfile'': Disk quota exceeded willm1 at chasca:~$ strace rm bigfile execve("/bin/rm", ["rm", "bigfile"], [/* 57 vars */]) = 0 (...) access("bigfile", W_OK) = 0 unlink("bigfile") = -1 EDQUOT (Disk quota exceeded) (on the NFS server) willm1 at c64:~$ rm bigfile (no error) This is a big problem. We don''t want to allow (or force) users to log in to the NFS server to delete files. Why is the beha...
2011 Jan 16
0
fs quota backend bug
...=makedev(253, 2), st_ino=475157, st_mode=S_IFDIR|0700, st_nlink=11, st_uid=1042, st_gid=102, st_blks ize=4096, st_blocks=16, st_size=4096, st_atime=2009/05/18-12:07:57, st_mtime=2011/01/16-11:36:32, st_ctime=2011/01/16-11:36:32}) = 0 access("/home/vmail/ofight.org/team at ofight.org/cur", W_OK) = 0 setsockopt(1, SOL_TCP, TCP_CORK, [1], 4) = 0 write(1, "* QUOTAROOT \"INBOX\"\r\n357 OK Getq"..., 53) = 53 # 1.2.16: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-hardened-r31 x86_64 Gentoo Base System release 2.0.0 jfs base_dir: /var/run/dovecot/ log_path: /var/log/dovecot....
2016 Apr 12
2
Slow reading of large dovecot-uidlist files
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 12 Apr 2016, Bostjan Skufca wrote: > On 12 April 2016 at 10:23, A.L.E.C <alec at alec.pl> wrote: > >> I don't know dovecot's code, but I suppose it uses uidlist file to get >> mailbox statistics that it returns as EXISTS, RECENT, UNSEEN, UIDNEXT, >> UIDVALIDITY, etc, which are required by IMAP standard. I
2015 Jul 02
0
[PATCH] Fix various -Wformat problems.
...UID:GID = %d:%d, " + "caller UID:GID = %ju:%ju, " + "file UID:GID = %ju:%ju, " "file mode = %o, " "result = %s", path, @@ -354,8 +354,8 @@ mount_local_access (const char *path, int mask) mask & W_OK ? " W_OK" : "", mask & X_OK ? " X_OK" : "", mask == 0 ? " 0" : "", - fuse->uid, fuse->gid, - statbuf.st_uid, statbuf.st_gid, + (uintmax_t) fuse->uid, (uintmax_t) fuse->gid, +...
2015 Jul 02
0
[PATCH v2] Fix various -Wformat problems.
...UID:GID = %d:%d, " + "caller UID:GID = %ju:%ju, " + "file UID:GID = %ju:%ju, " "file mode = %o, " "result = %s", path, @@ -354,8 +354,8 @@ mount_local_access (const char *path, int mask) mask & W_OK ? " W_OK" : "", mask & X_OK ? " X_OK" : "", mask == 0 ? " 0" : "", - fuse->uid, fuse->gid, - statbuf.st_uid, statbuf.st_gid, + (uintmax_t) fuse->uid, (uintmax_t) fuse->gid, +...
2019 Feb 07
0
"sieve: failed to store into mailbox 'Junk': Read-only mbox" over root_squashed NFS, lmtp : euid/egid set and access() don't mix together for me
...plicitly not consider effective uid/gid. From strace (more in pastebin) : > [pid 30326] geteuid()?????????????????? = 0 > [pid 30326] setresuid(-1, 20609, -1) ? ?= 0 > [pid 30326] geteuid() ? ? ? ? ? ? ? ? ? = 20609 > [pid 30326] access("/home/tstifi04/mail-imap/Junk", R_OK|W_OK) = -1 > EACCES (Permission denied) From man access > ?????? The check is done using the calling process's real UID and GID, > rather than the effective IDs as is? done? when? actually > ?????? attempting? an? operation? (e.g., open(2)) on the file. > Similarly, for the root...
2009 Sep 29
3
Problem with dict-quota, deliver killed by delivery attempt
...at("/var/mail/mail/my-server.pl/jacek", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 time(NULL) = 1254235039 mmap(NULL, 200704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f990119c000 access("/var/mail/mail/my-server.pl/jacek/cur", W_OK) = 0 open("/var/mail/mail/my-server.pl/jacek/dovecot.index.log", O_RDWR) = 8 fstat(8, {st_mode=S_IFREG|0600, st_size=420, ...}) = 0 pread(8, "\1\2(\0<\23\302J\2\0\0\0\1\0\0\0\0\0\0\0<\23\302J\0\0\0\0\0\0\0\0"..., 40, 0) = 40 stat("/var/mail/mail/my-server.pl/jacek/dov...
2009 Aug 03
3
Performance problem with STATUS after upgrade (1.0.15 -> 1.2.2)
Hello list, after upgrading dovecot from 1.0.15 to 1.2.2 (and carefully reading through the upgrading notes in the wiki), I got sieve, quota and fts up and running, but I'm now suffering some kind of performance problem with the STATUS command. Symptoms: Reading mail on the IMAP server itself with "mutt", no TLS/SSL, connected through loopback interface. Whenever I idle a bit and
2012 Mar 28
2
[PATCH v2] New APIs: mount-local and umount-local using FUSE
This version doesn't crash or cause hung processes or stuck mountpoints, so that's an improvement. Rich.
2012 Mar 27
3
[PATCH 0/3] Enable FUSE support in the API via 'mount-local' call.
This patch is just for review. It enables FUSE support in the API via two new calls, 'guestfs_mount_local' and 'guestfs_umount_local'. FUSE turns out to be very easy to deadlock (necessitating that the machine be rebooted). Running the test from the third patch is usually an effective way to demonstrate this. However I have not yet managed to produce a simple reproducer that