Displaying 6 results from an estimated 6 matches for "cr_uid".
2015 Sep 27
2
v2.2.19 release candidate released
Timo,
I have to test something on one of the BSD, namely related to src/lib/net.c .
--
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
God,Queen and country!Never Satan President Republic!Beware AntiChrist rising!
http://www.fullyfollow.me/rootnl2k Look at Psalms 14 and 53 on Atheism
Time for Stephen to move on on Oct 19 2015!!
1999 Sep 15
0
FreeBSD Security Advisory: FreeBSD-SA-99:04.core
...E | O_NOFOLLOW, S_IRUSR | S_IWUSR);
free(name, M_TEMP);
if (error)
return (error);
*** kern/imgact_aout.c 1999/05/17 00:53:36 1.52
--- kern/imgact_aout.c 1999/08/26 17:32:48 1.53
***************
*** 264,271 ****
name = expand_name(p->p_comm, p->p_ucred->cr_uid, p->p_pid);
if (name == NULL)
return (EFAULT); /* XXX -- not the best error */
! NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, name, p);
! error = vn_open(&nd, O_CREAT | FWRITE, S_IRUSR | S_IWUSR);
free(name, M_TEMP);
if (error)
return (error);
--- 26...
2015 Sep 27
0
v2.2.19 release candidate released
...gt; Timo,
>
> I have to test something on one of the BSD, namely related to src/lib/net.c .
>
FYI make sys/ucred.h reads
#ifndef _SYS_UCRED_H_
#define _SYS_UCRED_H_
/*
* Credentials.
*/
struct ucred {
u_int cr_ref; /* reference count */
uid_t cr_uid; /* effective user id */
short cr_ngroups; /* number of groups */
gid_t cr_groups[NGROUPS]; /* groups */
};
#define cr_gid cr_groups[0]
#define NOCRED NULL /* no credential available */
#define FSCRED ((struct ucred *)-1) /...
2003 Jun 11
1
nfs panic with umount -f
...0}, vpi_selinfo = {si_pid = 0, si_note = {
slh_first = 0x0}, si_flags = 0}, vpi_events = 0, vpi_revents = 0},
v_vxproc = 0x0}
(kgdb) p nfsstats.rpccnt
$1 = {0, 1, 69, 2755, 1372, 2, 210, 57, 37, 0, 1, 0, 21, 0, 28, 4, 33, 0, 72,
1, 0, 38, 0, 0, 0, 0}
(kgdb) p *cred
$10 = {cr_ref = 1, cr_uid = 1001, cr_ngroups = 2, cr_groups = {100, 100,
0 <repeats 14 times>}, cr_uidinfo = 0xc2411440}
Martin
Martin Blapp, <mb@imp.ch> <mbr@FreeBSD.org>
------------------------------------------------------------------
ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Prat...
2020 Oct 05
4
[PATCH nbdkit v3 0/4] ip: Add filtering by process ID, user ID and group ID.
v2 was here:
https://www.redhat.com/archives/libguestfs/2020-October/msg00019.html
v3:
* defence -> defense
* Use int64_t instead of int. This compiles on Windows.
* Add GC wrappers to OCaml bindings.
* New FreeBSD patch.
* Removed "pid:" example from the ip filter manual, and added a warning
beside the pid documentation.
Rich.
2003 Apr 11
14
PATCH: Forcible delaying of UFS (soft)updates
...fs->fs_bsize && fs->fs_cstotal.cs_nbfree == 0)
goto nospace;
+ /* Speedup flushing of syncer_wokitem_pending[*] if low on freespace */
+ if (rushjob == 0 &&
+ freespace(fs, fs->fs_minfree + 2) - numfrags(fs, size) < 0)
+ rushjob = syncer_maxdelay;
if (cred->cr_uid != 0 &&
freespace(fs, fs->fs_minfree) - numfrags(fs, size) < 0)
goto nospace;
@@ -195,6 +199,10 @@ ffs_realloccg(ip, lbprev, bpref, osize,
if (cred == NOCRED)
panic("ffs_realloccg: missing credential");
#endif /* DIAGNOSTIC */
+ /* Speedup flushing of syncer_...