Searched refs:uid (Results 326 - 350 of 614) sorted by relevance

<<11121314151617181920>>

/freebsd-10.0-release/tools/regression/priv/
H A Dmain.h49 void setup_dir(const char *test, char *dpathp, uid_t uid, gid_t gid,
51 void setup_file(const char *test, char *fpathp, uid_t uid, gid_t gid,
/freebsd-10.0-release/usr.sbin/lpr/common_source/
H A Dlp.h256 extern uid_t uid, euid;
262 if (seteuid(uid) != 0) err(1, "seteuid failed"); \
/freebsd-10.0-release/usr.sbin/lpr/lpc/
H A Dlpc.c80 uid_t uid, euid; variable
95 uid = getuid();
/freebsd-10.0-release/usr.sbin/lpr/pac/
H A Dpac.c76 uid_t uid, euid; variable
115 uid = getuid();
/freebsd-10.0-release/contrib/apr/threadproc/unix/
H A Dproc.c38 (*new)->uid = (*new)->gid = -1;
321 if ((rv = apr_uid_get(&attr->uid, &gid, username,
323 attr->uid = -1;
475 if (attr->uid != -1 && !geteuid()) {
476 if (setuid(attr->uid)) {
/freebsd-10.0-release/contrib/ntp/ntpd/
H A Dntpd.c489 uid_t uid; local
491 uid = getuid();
492 if (uid)
494 msyslog(LOG_ERR, "ntpd: must be run as root, not uid %ld", (long)uid);
495 printf("must be run as root, not uid %ld", (long)uid);
925 * is associated with running with uid 0 - should be refined on
926 * ports that allow binding to NTP_PORT with uid != 0
939 * We may be running under non-root uid no
[all...]
/freebsd-10.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Ddsl_deleg.c122 * perms for their uid.
672 boolean_t dosets, uint64_t uid, dmu_tx_t *tx)
695 ZFS_DELEG_LOCAL, &uid);
720 uint64_t uid = crgetuid(cr); local
732 copy_create_perms(sdd, pzapobj, B_FALSE, uid, tx);
733 copy_create_perms(sdd, pzapobj, B_TRUE, uid, tx);
671 copy_create_perms(dsl_dir_t *dd, uint64_t pzapobj, boolean_t dosets, uint64_t uid, dmu_tx_t *tx) argument
H A Dzfs_sa.c205 uint64_t uid, gid, mode, rdev, xattr, parent; local
244 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_UID(zfsvfs), NULL, &uid, 8);
263 SA_ADD_BULK_ATTR(sa_attrs, count, SA_ZPL_UID(zfsvfs), NULL, &uid, 8);
/freebsd-10.0-release/sys/dev/esp/
H A Desp_sbus.c452 unsigned int uid = 0; local
498 uid = NCR_READ_REG(sc, NCR_UID);
533 switch ((uid & 0xf8) >> 3) {
539 if ((uid & 0x07) == 0x02)
567 printf("%s: revision %d, uid 0x%x\n", __func__, sc->sc_rev, uid);
/freebsd-10.0-release/usr.bin/msgs/
H A Dmsgs.c95 #define SUPERUSER 0 /* superuser uid */
96 #define DAEMON 1 /* daemon uid */
130 static uid_t uid; variable
178 if (setuid(uid = getuid()) != 0)
200 if (uid != SUPERUSER && uid != DAEMON)
362 ptr = getpwuid(uid)->pw_name;
/freebsd-10.0-release/include/rpcsvc/
H A Dnfs_prot.x121 unsigned uid; /* owner user id */
139 unsigned uid; /* owner user id */
402 uid3 uid; /* owner user id */
464 uid3 uid;
499 set_uid3 uid;
/freebsd-10.0-release/sbin/restore/
H A Dtape.c566 uid_t uid; local
585 uid = getuid();
586 if (uid == 0)
587 uid = curfile.uid;
627 (void) lchown(name, uid, gid);
657 (void) chown(name, uid, gid);
687 (void) chown(name, uid, gid);
713 (void) fchown(ofile, uid, gid);
1442 * format inodes, copy the uid/gi
[all...]
/freebsd-10.0-release/contrib/gcc/
H A Dipa-reference.c146 /* Return a bitmap indexed by VAR_DECL uid for the static variables
160 /* Return a bitmap indexed by VAR_DECL uid for the static variables
174 /* Return a bitmap indexed by VAR_DECL uid for the static variables
188 /* Return a bitmap indexed by VAR_DECL uid for the static variables
203 /* Return a bitmap indexed by_DECL_UID uid for the static variables
217 /* Return a bitmap indexed by DECL_UID uid for the static variables
241 int uid = DECL_UID (var);
242 if (!bitmap_bit_p (all_module_statics, uid))
245 uid, (splay_tree_value)var);
246 bitmap_set_bit (all_module_statics, uid);
240 int uid = DECL_UID (var); local
[all...]
/freebsd-10.0-release/contrib/ipfilter/
H A Dip_dstlist.c355 /* uid(I) - uid of process doing the ioctl */
474 /* uid(I) - uid of process doing the ioctl */
488 ipf_dstlist_node_add(softc, arg, op, uid)
492 int uid;
590 node->ipfd_uid = uid;
650 /* uid(I) - uid of process doing the ioctl */
657 ipf_dstlist_node_del(softc, arg, op, uid)
[all...]
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/
H A Dip_dstlist.c355 /* uid(I) - uid of process doing the ioctl */
474 /* uid(I) - uid of process doing the ioctl */
488 ipf_dstlist_node_add(softc, arg, op, uid)
492 int uid;
590 node->ipfd_uid = uid;
650 /* uid(I) - uid of process doing the ioctl */
657 ipf_dstlist_node_del(softc, arg, op, uid)
[all...]
H A Dip_htable.c535 /* uid(I) - real uid of process doing operation */
539 ipf_htable_node_del(softc, arg, op, uid)
543 int uid;
572 if ((uid != 0) && (ent->ipe_uid != uid)) {
853 /* uid(I) - real uid of process doing operation */
857 ipf_htable_node_add(softc, arg, op, uid)
861 int uid;
[all...]
H A Dip_pool.c376 ipf_pool_node_add(softc, arg, op, uid)
380 int uid;
471 ipf_pool_node_del(softc, arg, op, uid)
475 int uid;
486 node.ipn_uid = uid;
527 if ((uid != 0) && (uid != m->ipn_uid)) {
/freebsd-10.0-release/sys/kern/
H A Duipc_sem.c267 ksem_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, argument
277 error = mac_posixsem_check_setowner(active_cred, ks, uid, gid);
281 if (uid == (uid_t)-1)
282 uid = ks->ks_uid;
285 if (((uid != ks->ks_uid && uid != active_cred->cr_uid) ||
289 ks->ks_uid = uid;
H A Duipc_shm.c892 shm_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, argument
902 error = mac_posixshm_check_setowner(active_cred, shmfd, uid, gid);
906 if (uid == (uid_t)-1)
907 uid = shmfd->shm_uid;
910 if (((uid != shmfd->shm_uid && uid != active_cred->cr_uid) ||
914 shmfd->shm_uid = uid;
/freebsd-10.0-release/contrib/llvm/tools/lldb/include/lldb/API/
H A DSBTarget.h45 SetUserID (uint32_t uid);
187 SetUserID (uint32_t uid);
205 SetEffectiveUserID (uint32_t uid);
/freebsd-10.0-release/contrib/llvm/tools/lldb/source/Plugins/Platform/FreeBSD/
H A DPlatformFreeBSD.cpp530 PlatformFreeBSD::GetUserName (uint32_t uid) argument
532 // Check the cache in Platform in case we have already looked this uid up
533 const char *user_name = Platform::GetUserName(uid);
538 return m_remote_platform_sp->GetUserName(uid);
/freebsd-10.0-release/contrib/sendmail/libsmdb/
H A Dsmdb1.c275 smdb1_set_owner(database, uid, gid)
277 uid_t uid;
289 result = fchown(fd, uid, gid);
/freebsd-10.0-release/sys/fs/nfs/
H A Dnfs_commonacl.c52 uid_t uid; local
109 aceerr = nfsv4_strtouid(nd, name, len, &uid, p);
111 acep->ae_id = uid;
/freebsd-10.0-release/sys/fs/smbfs/
H A Dsmbfs_vfsops.c113 ma = mount_argf(ma, "uid", "%d", args.uid);
126 "mountpoint", "rootpath", "uid", "gid", "file_mode", "dir_mode",
184 if (1 != vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v)) {
185 vfs_mount_error(mp, "Invalid uid");
354 smbfs_quotactl(mp, cmd, uid, arg)
357 uid_t uid;
/freebsd-10.0-release/sys/ofed/drivers/infiniband/ulp/sdp/
H A Dsdp_proc.c124 int uid; local
133 "uid inode rx_queue tx_queue state");
143 uid = sock_i_uid(sk);
149 st->num, src, srcp, dest, destp, uid, inode,

Completed in 151 milliseconds

<<11121314151617181920>>