search for: eperm

Displaying 20 results from an estimated 628 matches for "eperm".

2007 Jul 16
1
Tripp Lite OmniSV1500XL
...st_size=60, ...}) = 0 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 getdents(4, /* 3 entries */, 4096) = 72 open("/dev/bus/usb/001/001", O_RDWR) = -1 EACCES (Permission denied) open("/dev/bus/usb/001/001", O_RDONLY) = 5 ioctl(5, USBDEVFS_CONNECTINFO, 0x7fff23b761b0) = -1 EPERM (Operation not permitted) read(5, "\22\1\20\1\t\0\0@\0\0\0\0\6\2\3\2\1\1", 18) = 18 read(5, "\t\2\31\0\1\1\0\340", 8) = 8 read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17 close(5) = 0 getdents(4, /* 0 entries */, 4096)...
2013 Mar 02
1
[PATCH] btrfs: return EPERM in btrfs_rm_device()
Currently there are error paths in btrfs_rm_device() where EINVAL is returned telling the user they passed an invalid argument even though they passed a valid device. Change to return EPERM instead as the operation is not permitted. Signed-off-by: Jerry Snitselaar <jerry.snitselaar@oracle.com> --- fs/btrfs/volumes.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 5cbb7f4..3e1586c 100644 --- a/fs/btrfs/vo...
2014 Jan 16
0
Generic UPS driver
...O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4 getdents(4, /* 3 entries */, 32768) = 72 open("/dev/bus/usb/009/001", O_RDWR) = -1 EACCES (Permission denied) open("/dev/bus/usb/009/001", O_RDONLY) = 5 ioctl(5, SNDRV_CTL_IOCTL_ELEM_INFO or USBDEVFS_CONNECTINFO, 0x7fff2c4be0e0) = -1 EPERM (Operation not permitted) read(5, "\22\1\20\1\t\0\0 at k\35\1\0\21\3\3\2\1\1", 18) = 18 read(5, "\t\2\31\0\1\1\0\340", 8) = 8 read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17 close(5) = 0 getdents(4, /* 0 entries */, 32768...
2014 Jan 12
3
Generic UPS driver
On Jan 12, 2014, at 11:07 AM, Ariel Wainer wrote: > On 11/01/14 15:27, Charles Lepple wrote: >> On Jan 10, 2014, at 4:46 PM, Ariel Wainer wrote: >> >>> On 10/01/14 01:53, Charles Lepple wrote: >>>> I am curious about why the Interrupt Out packet is sent by the Windows software if it isn't to turn off the UPS. Is it possible to do some more testing with
2009 Jan 09
5
[PATCH] Enable PCI passthrough with stub domain.
...Wed Jan 07 11:25:00 2009 +0000 +++ b/xen/arch/x86/irq.c Thu Jan 08 18:58:36 2009 +0900 @@ -857,7 +857,7 @@ int map_domain_pirq( if ( type == MAP_PIRQ_TYPE_MSI ) return -EINVAL; - if ( !IS_PRIV(current->domain) ) + if ( !IS_PRIV_FOR(current->domain, d) ) return -EPERM; if ( pirq < 0 || pirq >= NR_IRQS || vector < 0 || vector >= NR_VECTORS ) @@ -931,7 +931,7 @@ int unmap_domain_pirq(struct domain *d, if ( (pirq < 0) || (pirq >= NR_IRQS) ) return -EINVAL; - if ( !IS_PRIV(current->domain) ) + if ( !IS_PRIV_FOR(curr...
2005 Nov 24
1
[PATCH] dom0_ops -EPERM not -EACCES?
Hi all, dom0_ops return -EACCES when the interface version in wrong. I think that an acm failure is closer to being non-priv''ed, which returns -EPERM. Wouldn''t want dom0 tools to report they were the wrong version just because ACM limited some operation, surely? Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored) diff -r e2d1c88d50f7 xen/common/dom0_ops.c --- a/xen/common/dom0_ops.c Thu Nov 24 00:55:37 2005 +++ b/xe...
2006 Oct 29
1
dmapi doesn't work on aix; possible fix included
...err = dm_path_to_handle(CONST_DISCARD(char *, path), &dm_handle, &dm_handle_len); if (err < 0) { DEBUG(DMAPI_TRACE, ("dm_path_to_handle(%s): %s\n", path, strerror(errno))); if (errno != EPERM) { return 0; } On AIX, dm_path_to_handle() is returning EACCES instead of EPERM, so it hits the return 0. Is EPERM supposed to be the only allowed error, or is this something that's likely implementation dependent? Changing the if-condition to (e...
2013 Jul 19
0
[PATCH] xen: replace strict_strtoul() with kstrtoul()
...-) diff --git a/drivers/xen/xen-selfballoon.c b/drivers/xen/xen-selfballoon.c index 02817a8..21e18c1 100644 --- a/drivers/xen/xen-selfballoon.c +++ b/drivers/xen/xen-selfballoon.c @@ -265,8 +265,10 @@ static ssize_t store_selfballooning(struct device *dev, if (!capable(CAP_SYS_ADMIN)) return -EPERM; - err = strict_strtoul(buf, 10, &tmp); - if (err || ((tmp != 0) && (tmp != 1))) + err = kstrtoul(buf, 10, &tmp); + if (err) + return err; + if ((tmp != 0) && (tmp != 1)) return -EINVAL; xen_selfballooning_enabled = !!tmp; @@ -292,8 +294,10 @@ static ssize_t store_...
2013 Jul 19
0
[PATCH] xen: replace strict_strtoul() with kstrtoul()
...-) diff --git a/drivers/xen/xen-selfballoon.c b/drivers/xen/xen-selfballoon.c index 02817a8..21e18c1 100644 --- a/drivers/xen/xen-selfballoon.c +++ b/drivers/xen/xen-selfballoon.c @@ -265,8 +265,10 @@ static ssize_t store_selfballooning(struct device *dev, if (!capable(CAP_SYS_ADMIN)) return -EPERM; - err = strict_strtoul(buf, 10, &tmp); - if (err || ((tmp != 0) && (tmp != 1))) + err = kstrtoul(buf, 10, &tmp); + if (err) + return err; + if ((tmp != 0) && (tmp != 1)) return -EINVAL; xen_selfballooning_enabled = !!tmp; @@ -292,8 +294,10 @@ static ssize_t store_...
2013 Jul 19
0
[PATCH] xen: replace strict_strtoul() with kstrtoul()
...-) diff --git a/drivers/xen/xen-selfballoon.c b/drivers/xen/xen-selfballoon.c index 02817a8..21e18c1 100644 --- a/drivers/xen/xen-selfballoon.c +++ b/drivers/xen/xen-selfballoon.c @@ -265,8 +265,10 @@ static ssize_t store_selfballooning(struct device *dev, if (!capable(CAP_SYS_ADMIN)) return -EPERM; - err = strict_strtoul(buf, 10, &tmp); - if (err || ((tmp != 0) && (tmp != 1))) + err = kstrtoul(buf, 10, &tmp); + if (err) + return err; + if ((tmp != 0) && (tmp != 1)) return -EINVAL; xen_selfballooning_enabled = !!tmp; @@ -292,8 +294,10 @@ static ssize_t store_...
2018 Jul 27
4
[PATCH] file: Fix zero/trim with block device
...= EOPNOTSUPP && errno != ENODEV) { nbdkit_error ("zero: %m"); } #else @@ -288,11 +288,11 @@ file_trim (void *handle, uint32_t count, uint64_t offset) struct handle *h = handle; /* Trim is advisory; we don't care if it fails for anything other - * than EIO or EPERM. */ + * than EIO, EPERM, or ENODEV (kernel 3.10) */ r = fallocate (h->fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, offset, count); if (r < 0) { - if (errno != EPERM && errno != EIO) { + if (errno != EPERM && errno != EIO && errno != E...
2009 Feb 05
0
sendto syscall: EPERM (Operation not permitted)
...9;t know who to ask, so if this is OT, please redirect me. CentOS 5.2 64-bit Xen domU running Asterisk 1.4.22 32-bit with a number of SIP phones and a few SIP<->PSTN gateways. When asterisk tries to send a packet over UDP 5060 to one (and only one) of the gateways, the syscall returns "EPERM (Operation not permitted)". Strangely, sending to UDP 5060 on the other gateway on the same network or any of the SIP phones works just fine, sent from the same socket, only difference is the IP address and the packet contents. Following is an strace of Asterisk starting up with only the sys...
2010 Feb 08
1
DO NOT REPLY [Bug 7110] New: Symlink fake-super data is silently lost when sys_lsetxattr fails with EPERM
https://bugzilla.samba.org/show_bug.cgi?id=7110 Summary: Symlink fake-super data is silently lost when sys_lsetxattr fails with EPERM Product: rsync Version: 3.1.0 Platform: All OS/Version: All Status: NEW Severity: major Priority: P3 Component: core AssignedTo: wayned at samba.org ReportedBy: matt at mattmccutchen.net QACont...
2012 Sep 13
0
[PATCH] btrfs: return EPERM upon rmdir on a subvolume
A subvolume cannot be deleted via rmdir, but the error code ENOTEMPTY is confusing. Return EPERM instead, as this is not permitted. Signed-off-by: David Sterba <dsterba@suse.cz> --- fs/btrfs/inode.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index a4167ef..a67dadd 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c...
2007 Apr 18
0
[Bridge] [PATCH] (4/11) bridge - ioctl cleanup and consolidation
...(dev); + unsigned long args[4]; + + if (cmd != SIOCDEVPRIVATE) + return -EOPNOTSUPP; + + if (copy_from_user(args, rq->ifr_data, sizeof(args))) + return -EFAULT; + + switch (args[0]) { case BRCTL_ADD_IF: case BRCTL_DEL_IF: { @@ -44,11 +73,11 @@ if (!capable(CAP_NET_ADMIN)) return -EPERM; - dev = dev_get_by_index(arg0); + dev = dev_get_by_index(args[1]); if (dev == NULL) return -EINVAL; - if (cmd == BRCTL_ADD_IF) + if (args[0] == BRCTL_ADD_IF) ret = br_add_if(br, dev); else ret = br_del_if(br, dev); @@ -83,7 +112,7 @@ b.gc_timer_value = timer_residue(&a...
2007 Mar 18
3
[Bug 1300] rename doesn't work on Linux vfat
...SWeb that in current versions of OpenSSH, there is code in process_rename() in sftp-server.c which checks if links are available on the target filesystem. It does so by checking the errno given by link() against EOPNOTSUPP. The problem is: At least on Linux 2.6.x with glibc 2.3.5, link() returns EPERM in this case as is also documented in my copy of "man 2 link": ... EPERM oldpath is a directory. EPERM The filesystem containing oldpath and newpath does not support the creation of hard links. ... Thus the lack of link support is not detected and rename will not fall bac...
2012 Feb 29
2
[PATCH] Start the server if another user has a PID matching our stale pidfile.
....rb index 7d2c623..0c2af5d 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -656,7 +656,7 @@ class Unicorn::HttpServer wpid <= 0 and return Process.kill(0, wpid) wpid - rescue Errno::ESRCH, Errno::ENOENT + rescue Errno::ESRCH, Errno::ENOENT, Errno::EPERM # don''t unlink stale pid files, racy without non-portable locking... end -- 1.7.5.4
2015 Apr 07
1
[PATCH v3 7/7] vhost: feature to set the vring endianness
...vhost when used to implement > legacy virtio devices. Since it is a relatively rare situation, the > feature availability is controlled by a kernel config option (not set > by default). > > The ioctls introduced by this patch are for legacy only: virtio 1.0 > devices are returned EPERM. > > Signed-off-by: Greg Kurz <gkurz at linux.vnet.ibm.com> > --- > drivers/vhost/Kconfig | 10 ++++++++ > drivers/vhost/vhost.c | 55 ++++++++++++++++++++++++++++++++++++++++++++ > drivers/vhost/vhost.h | 17 +++++++++++++- > include/uapi/linux/vho...
2015 Apr 07
1
[PATCH v3 7/7] vhost: feature to set the vring endianness
...vhost when used to implement > legacy virtio devices. Since it is a relatively rare situation, the > feature availability is controlled by a kernel config option (not set > by default). > > The ioctls introduced by this patch are for legacy only: virtio 1.0 > devices are returned EPERM. > > Signed-off-by: Greg Kurz <gkurz at linux.vnet.ibm.com> > --- > drivers/vhost/Kconfig | 10 ++++++++ > drivers/vhost/vhost.c | 55 ++++++++++++++++++++++++++++++++++++++++++++ > drivers/vhost/vhost.h | 17 +++++++++++++- > include/uapi/linux/vho...
2018 Jul 28
1
Re: [PATCH] file: Fix zero/trim with block device
...> fallbacks? You may need to explicitly set errno. > > >@@ -288,11 +288,11 @@ file_trim (void *handle, uint32_t count, uint64_t offset) > > struct handle *h = handle; > > /* Trim is advisory; we don't care if it fails for anything other > >- * than EIO or EPERM. */ > >+ * than EIO, EPERM, or ENODEV (kernel 3.10) */ > > r = fallocate (h->fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, > > offset, count); > > if (r < 0) { > >- if (errno != EPERM && errno != EIO) { > >+ if (err...