Home
last modified time | relevance | path

Searched refs:uid (Results 1 – 4 of 4) sorted by relevance

/kernel/tests/net/test/
Dqtaguid_test.py54 def CheckTag(self, tag, uid): argument
56 if "tag=0x%x (uid=%d)" % ((tag|uid), uid) in line:
171 uid = os.getuid()
173 command = "t %d %d %d" % (sk.fileno(), tag, uid)
175 self.assertTrue(self.CheckTag(tag, uid))
177 self.assertFalse(self.CheckTag(tag, uid))
182 uid = os.getuid()
184 command = "t %d %d %d" % (sk.fileno(), tag, uid)
186 self.assertTrue(self.CheckTag(tag, uid))
189 self.assertFalse(self.CheckTag(tag, uid))
Dnet_test.py367 def __init__(self, uid, gid): argument
368 self.uid = uid
375 if self.uid:
379 os.setresuid(self.uid, self.uid, self.saved_uids[0])
382 if self.uid:
391 def __init__(self, uid): argument
392 RunAsUidGid.__init__(self, uid, 0)
471 _, _, uid, _, _, refcnt, _, extra) = m.groups()
472 out.append([src, dst, state, mem, uid, refcnt, extra])
Dbpf_test.py455 uid = TEST_UID
456 with net_test.RunAsUid(uid):
457 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, uid)
459 self.assertEqual(packet_count, LookupMap(self.map_fd, uid).value)
460 DeleteMap(self.map_fd, uid)
462 self.assertEqual(packet_count, LookupMap(self.map_fd, uid).value)
551 uid = TEST_UID
552 with net_test.RunAsUid(uid):
553 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, uid)
555 self.assertEqual(packet_count, LookupMap(self.map_fd, uid).value)
[all …]
Dmultinetwork_base.py598 uid=None, route_type=iproute.RTN_THROW,