Displaying 8 results from an estimated 8 matches for "vattr".
Did you mean:
attr
1999 Sep 03
0
FreeBSD-SA-99:01: BSD File Flags and Programming Techniques
...yscalls.c,v
retrieving revision 1.125
retrieving revision 1.128
diff -u -r1.125 -r1.128
--- vfs_syscalls.c 1999/07/29 17:02:56 1.125
+++ vfs_syscalls.c 1999/08/04 04:52:18 1.128
@@ -1892,13 +1892,23 @@
int error;
struct vattr vattr;
+ /*
+ * Prevent non-root users from setting flags on devices. When
+ * a device is reused, users can retain ownership of the device
+ * if they are allowed to set flags and programs assume that
+ * chown can't fail when done as root....
2007 Sep 03
1
Code/comment mismatch in delegated administration code.
...r of those two (is the owner or can write) is true, we
should allow the mount. Am I right? If I am right, the patch below
implements my thinking.
--- uts/common/fs/zfs/zfs_vfsops.c
+++ uts/common/fs/zfs/zfs_vfsops.c
@@ -608,11 +608,9 @@
goto out;
}
- if (error = secpolicy_vnode_owner(cr, vattr.va_uid)) {
- goto out;
- }
-
- if (error = VOP_ACCESS(mvp, VWRITE, cr, td)) {
+ if (secpolicy_vnode_owner(cr, vattr.va_uid) != 0 &&
+ VOP_ACCESS(mvp, VWRITE, cr, td) != 0) {
+ error = EPERM;
goto out;
}
--
Pawel Jakub Dawidek http://www.wheel...
2003 Nov 30
0
FreeBSD mknod refuses to create pipes and fifos
...03
+++ sys/kern/vfs_syscalls.c Sun Nov 30 01:25:35 2003
@@ -1189,6 +1189,10 @@
case S_IFBLK:
error = suser(p);
break;
+ case S_IFIFO:
+ case S_IFSOCK:
+ error = 0;
+ break;
default:
error = suser_xxx(0, p, PRISON_ROOT);
break;
@@ -1217,6 +1221,12 @@
break;
case S_IFBLK:
vattr.va_type = VBLK;
+ break;
+ case S_IFSOCK:
+ vattr.va_type = VSOCK;
+ break;
+ case S_IFIFO:
+ vattr.va_type = VFIFO;
break;
case S_IFWHT:
whiteout = 1;
1) I'm not sure if FIFO and/or SOCK creation with mknod should be allowed to
non-root users. This patch allows non-root...
2013 Jan 06
1
[PATCH] menugen: Make it compatible with Py3k
...om32/cmenu/menugen.py
index 70ec1f8..da64d93 100644
--- a/com32/cmenu/menugen.py
+++ b/com32/cmenu/menugen.py
@@ -72,9 +72,9 @@ class Menusystem:
self.init_entry()
self.init_menu()
self.init_system()
- self.vtypes = " OR ".join(self.types.keys())
- self.vattrs = " OR ".join(filter(lambda x: x[0] != "_", self.entry.keys()))
- self.mattrs = " OR ".join(filter(lambda x: x[0] != "_", self.menu.keys()))
+ self.vtypes = " OR ".join(list(self.types.keys()))
+ self.vattrs = " OR ".joi...
2014 Feb 05
0
[PATCH] drm/nv50/graph: update status enum names
...t; },
- { 0x00000400, "CCACHE_UNK4" },
- { 0x00000800, "STRMOUT_GSCHED_UNK5" },
- { 0x00001000, "UNK14XX" },
- { 0x00002000, "UNK24XX_CSCHED" },
- { 0x00004000, "UNK1CXX" },
+ { 0x00000400, "CCACHE_PREGEOM" },
+ { 0x00000800, "STRMOUT_VATTR_POSTGEOM" },
+ { 0x00001000, "VCLIP" },
+ { 0x00002000, "RATTR_APLANE" },
+ { 0x00004000, "TRAST" },
{ 0x00008000, "CLIPID" },
{ 0x00010000, "ZCULL" },
{ 0x00020000, "ENG2D" },
- { 0x00040000, "UNK34XX" },
- { 0x000800...
2013 Sep 12
1
9.2-RC1 panic at shutdown
...ffffe00048ae338, rootrefs=1,
flags=2, td=0xfffffe008be0b000) at /usr/src/sys/kern/vfs_subr.c:2687
_rc = <value optimized out>
vp = (struct vnode *) 0xfffffe0035273000
mvp = (struct vnode *) 0xfffffe008bc36800
rootvp = (struct vnode *) 0xfffffe0035273000
vattr = {va_type = 2175779674, va_mode = 65535, va_nlink = -1,
va_uid = 689, va_gid = 0, va_fsid = 3889432544, va_fileid = -2133215974,
va_size = 4, va_blocksize = 525312,
va_atime = {tv_sec = -2198131494912, tv_nsec = 689}, va_mtime =
{tv_sec = -545866381232, tv_nsec = -2137280809}, va_ctime = {tv_sec...
2003 Apr 11
14
PATCH: Forcible delaying of UFS (soft)updates
...buf) bswlist;
extern TAILQ_HEAD(bqueues, buf) bufqueues[BUFFER_QUEUES];
--- /usr/src/sys.org/sys/vnode.h Sun Dec 29 19:19:53 2002
+++ sys/vnode.h Sat Apr 12 00:06:20 2003
@@ -294,6 +294,9 @@ extern struct vm_zone *namei_zone;
extern int prtactive; /* nonzero to call vprint() */
extern struct vattr va_null; /* predefined null vattr structure */
extern int vfs_ioopt;
+extern int rushjob;
+extern int syncer_maxdelay;
+extern int sync_extdelay;
/*
* Macro/function to check for client cache inconsistency w.r.t. leasing.
-------------- next part --------------
# apmd Configuration File
#...
2006 Jul 26
5
linux-2.6-xen.hg
Hi,
Is the http://xenbits.xensource.com/linux-2.6-xen.hg tree still being
updated? if not, what''s the preferred Linux tree to track that has all
of the Xen bits?
Thanks,
Muli
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel