Home
last modified time | relevance | path

Searched refs:rights (Results 1 – 25 of 1125) sorted by relevance

12345678910>>...45

/trueos/sys/kern/
HDsubr_capability.c76 cap_rights_vset(cap_rights_t *rights, va_list ap) in cap_rights_vset() argument
81 assert(CAPVER(rights) == CAP_RIGHTS_VERSION_00); in cap_rights_vset()
83 n = CAPARSIZE(rights); in cap_rights_vset()
94 assert(CAPIDXBIT(rights->cr_rights[i]) == CAPIDXBIT(right)); in cap_rights_vset()
95 rights->cr_rights[i] |= right; in cap_rights_vset()
96 assert(CAPIDXBIT(rights->cr_rights[i]) == CAPIDXBIT(right)); in cap_rights_vset()
101 cap_rights_vclear(cap_rights_t *rights, va_list ap) in cap_rights_vclear() argument
106 assert(CAPVER(rights) == CAP_RIGHTS_VERSION_00); in cap_rights_vclear()
108 n = CAPARSIZE(rights); in cap_rights_vclear()
119 assert(CAPIDXBIT(rights->cr_rights[i]) == CAPIDXBIT(right)); in cap_rights_vclear()
[all …]
HDsys_capability.c224 cap_rights_t rights; in sys_cap_rights_limit() local
227 cap_rights_init(&rights); in sys_cap_rights_limit()
229 error = copyin(uap->rightsp, &rights, sizeof(rights.cr_rights[0])); in sys_cap_rights_limit()
232 version = CAPVER(&rights); in sys_cap_rights_limit()
236 error = copyin(uap->rightsp, &rights, in sys_cap_rights_limit()
237 sizeof(rights.cr_rights[0]) * CAPARSIZE(&rights)); in sys_cap_rights_limit()
241 if (CAPVER(&rights) != version) in sys_cap_rights_limit()
244 if (!cap_rights_is_valid(&rights)) in sys_cap_rights_limit()
248 rights.cr_rights[0] &= ~(0x3ULL << 62); in sys_cap_rights_limit()
249 rights.cr_rights[0] |= ((uint64_t)CAP_RIGHTS_VERSION << 62); in sys_cap_rights_limit()
[all …]
/trueos/sys/sys/
HDcapsicum.h283 #define CAP_ALL(rights) do { \ argument
284 (rights)->cr_rights[0] = \
286 (rights)->cr_rights[1] = CAP_ALL1; \
289 #define CAP_NONE(rights) do { \ argument
290 (rights)->cr_rights[0] = \
292 (rights)->cr_rights[1] = CAPRIGHT(1, 0ULL); \
296 #define CAPVER(rights) CAPRVER((rights)->cr_rights[0]) argument
297 #define CAPARSIZE(rights) (CAPVER(rights) + 2) argument
320 cap_rights_t *__cap_rights_init(int version, cap_rights_t *rights, ...);
322 #define cap_rights_set(rights, ...) \ argument
[all …]
/trueos/crypto/openssh/
HDsandbox-capsicum.c72 cap_rights_t rights; in ssh_sandbox_child() local
88 cap_rights_init(&rights); in ssh_sandbox_child()
90 if (cap_rights_limit(STDIN_FILENO, &rights) < 0 && errno != ENOSYS) in ssh_sandbox_child()
92 if (cap_rights_limit(STDOUT_FILENO, &rights) < 0 && errno != ENOSYS) in ssh_sandbox_child()
94 if (cap_rights_limit(STDERR_FILENO, &rights) < 0 && errno != ENOSYS) in ssh_sandbox_child()
97 cap_rights_init(&rights, CAP_READ, CAP_WRITE); in ssh_sandbox_child()
98 if (cap_rights_limit(box->monitor->m_recvfd, &rights) < 0 && in ssh_sandbox_child()
101 cap_rights_init(&rights, CAP_WRITE); in ssh_sandbox_child()
102 if (cap_rights_limit(box->monitor->m_log_sendfd, &rights) < 0 && in ssh_sandbox_child()
/trueos/tools/regression/security/cap_test/
HDcap_test_relative.c61 cap_rights_t rights; in test_relative() local
64 CHECK_SYSCALL_SUCCEEDS(cap_getrights, etc, &rights); in test_relative()
65 CHECK_RIGHTS(rights, CAP_ALL); in test_relative()
103 CHECK_SYSCALL_SUCCEEDS(cap_getrights, etc_cap_base, &rights); in test_relative()
106 CHECK_SYSCALL_SUCCEEDS(cap_getrights, fd, &rights); in test_relative()
107 CHECK_RIGHTS(rights, baserights); in test_relative()
142 CHECK_SYSCALL_SUCCEEDS(cap_getrights, fd, &rights); in test_relative()
148 CHECK_SYSCALL_SUCCEEDS(cap_getrights, fd, &rights); in test_relative()
149 CHECK_RIGHTS(rights, baserights); in test_relative()
HDcap_test.h112 #define CHECK_RIGHTS(rights, max) do { \ argument
113 if ((success == PASSED) && (rights != max)) \
115 (cap_rights_t) rights, (cap_rights_t) max); \
119 #define MAKE_CAPABILITY(to, from, rights) do { \ argument
121 REQUIRE(to = cap_new(from, rights)); \
123 if ((success == PASSED) && (_rights != (rights))) \
125 _rights, (cap_rights_t) (rights)); \
HDcap_test_capabilities.c59 FAIL("%s:\t%s (rights 0x%jx)", #syscall, message, rights)
67 if ((rights & (rights_needed)) == (rights_needed)) { \
78 (uintmax_t)rights); \
90 if ((rights & (rights_needed)) == (rights_needed)) { \
101 " (rights 0x%jx)", "mmap", rights); \
114 try_file_ops(int filefd, int dirfd, cap_rights_t rights) in try_file_ops() argument
131 REQUIRE(fd_cap = cap_new(filefd, rights)); in try_file_ops()
133 CHECK(rights == erights); in try_file_ops()
134 REQUIRE(fd_capcap = cap_new(fd_cap, rights)); in try_file_ops()
136 CHECK(rights == erights); in try_file_ops()
[all …]
HDcap_test_fcntl.c67 cap_rights_t rights = CAP_READ | CAP_FCNTL; in test_fcntl() local
82 { "file cap", cap_new(files[0].f_fd, rights) }, in test_fcntl()
83 { "socket cap", cap_new(files[1].f_fd, rights) }, in test_fcntl()
84 { "SHM cap", cap_new(files[2].f_fd, rights) }, in test_fcntl()
/trueos/games/fortune/datfiles/
HDgerrold.limerick3 %% Copyright David Gerrold, 1984-2000, all rights reserved,
10 %%All rights are reserved. This is mine. *
19 rights reserved, used with permission of the author.
28 rights reserved, used with permission of the author.
37 rights reserved, used with permission of the author.
46 rights reserved, used with permission of the author.
55 rights reserved, used with permission of the author.
64 rights reserved, used with permission of the author.
73 rights reserved, used with permission of the author.
82 rights reserved, used with permission of the author.
[all …]
/trueos/crypto/openssl/doc/HOWTO/
HDproxy_certificates.txt17 rights to some other entity (a computer process, typically, or sometimes to the
43 environments, that would grant extra or different authorisation rights.
120 NOTE: the proxy policy value is the part which determines the rights granted to
141 The basic way to interpret proxy policies is to start with some default rights,
142 then compute the resulting rights by checking the proxy certificate against
144 use the final computed rights. Sounds easy, huh? It almost is.
167 /* In this example, I will use a view of granted rights as a bit
170 unsigned char rights[total_rights / 8];
208 YOUR_RIGHTS *rights =
217 /* Do whatever you need to grant explicit rights to
[all …]
/trueos/contrib/ofed/libibverbs/debian/
HDcopyright16 * Copyright (c) 2005, 2006 Cisco Systems. All rights reserved.
17 * Copyright (c) 2004, 2005 Intel Corporation. All rights reserved.
18 * Copyright (c) 2005 Mellanox Technologies Ltd. All rights reserved.
19 * Copyright (c) 2005 PathScale, Inc. All rights reserved.
20 * Copyright (c) 2004, 2005 Topspin Communications. All rights reserved.
21 * Copyright (c) 2005 Voltaire, Inc. All rights reserved.
/trueos/usr.bin/uniq/
HDuniq.c96 cap_rights_t rights; in main() local
148 cap_rights_init(&rights, CAP_FSTAT, CAP_READ); in main()
149 if (cap_rights_limit(fileno(ifp), &rights) < 0 && errno != ENOSYS) in main()
151 cap_rights_init(&rights, CAP_FSTAT, CAP_WRITE); in main()
155 cap_rights_set(&rights, CAP_IOCTL); in main()
156 if (cap_rights_limit(fileno(ofp), &rights) < 0 && errno != ENOSYS) { in main()
160 if (cap_rights_is_set(&rights, CAP_IOCTL)) { in main()
/trueos/sys/compat/mach/defs/
HDmach_port.defs2 * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.
9 * compliance with the License. The rights granted to you under the License
23 * Please see the License for the specific language governing rights and
54 * the rights to redistribute these changes.
122 * send/send-once rights or queued messages. The make-send
162 * Inserts the specified rights into the target task,
164 * rights and the task already has send/receive rights
197 * and send rights can have a positive delta.
216 * Puts the member port (the task must have receive rights)
237 * Destroys all rights associated with the name and makes it
[all …]
/trueos/contrib/sendmail/cf/feature/
HDmasquerade_envelope.m44 # All rights reserved.
5 # Copyright (c) 1983 Eric P. Allman. All rights reserved.
7 # The Regents of the University of California. All rights reserved.
HDstickyhost.m44 # All rights reserved.
5 # Copyright (c) 1983 Eric P. Allman. All rights reserved.
7 # The Regents of the University of California. All rights reserved.
HDmasquerade_entire_domain.m44 # All rights reserved.
5 # Copyright (c) 1983 Eric P. Allman. All rights reserved.
7 # The Regents of the University of California. All rights reserved.
HDlimited_masquerade.m44 # All rights reserved.
5 # Copyright (c) 1983 Eric P. Allman. All rights reserved.
7 # The Regents of the University of California. All rights reserved.
/trueos/contrib/sendmail/cf/ostype/
HDsunos4.1.m44 # All rights reserved.
5 # Copyright (c) 1983 Eric P. Allman. All rights reserved.
7 # The Regents of the University of California. All rights reserved.
HDbsdi.m44 # All rights reserved.
5 # Copyright (c) 1983 Eric P. Allman. All rights reserved.
7 # The Regents of the University of California. All rights reserved.
HDultrix4.m44 # All rights reserved.
5 # Copyright (c) 1983 Eric P. Allman. All rights reserved.
7 # The Regents of the University of California. All rights reserved.
HDsunos3.5.m44 # All rights reserved.
5 # Copyright (c) 1983 Eric P. Allman. All rights reserved.
7 # The Regents of the University of California. All rights reserved.
HDamdahl-uts.m44 # All rights reserved.
5 # Copyright (c) 1983 Eric P. Allman. All rights reserved.
7 # The Regents of the University of California. All rights reserved.
HDdynix3.2.m44 # All rights reserved.
5 # Copyright (c) 1983 Eric P. Allman. All rights reserved.
7 # The Regents of the University of California. All rights reserved.
/trueos/contrib/sendmail/cf/m4/
HDversion.m44 # All rights reserved.
5 # Copyright (c) 1983 Eric P. Allman. All rights reserved.
7 # The Regents of the University of California. All rights reserved.
/trueos/contrib/sendmail/cf/domain/
HDEECS.Berkeley.EDU.m44 # All rights reserved.
5 # Copyright (c) 1983 Eric P. Allman. All rights reserved.
7 # The Regents of the University of California. All rights reserved.

12345678910>>...45