Home
last modified time | relevance | path

Searched refs:perm (Results 1 – 25 of 247) sorted by relevance

12345678910

/external/vboot_reference/tests/tpm_lite/
Dtpmtest_redefine_unowned.c18 uint32_t perm; in main() local
33 perm = TPM_NV_PER_PPWRITE | TPM_NV_PER_GLOBALLOCK; in main()
34 TPM_CHECK(TlclDefineSpace(INDEX0, perm, 2 * sizeof(uint32_t))); in main()
35 TPM_CHECK(TlclDefineSpace(INDEX0, perm, sizeof(uint32_t))); in main()
37 perm = TPM_NV_PER_PPWRITE; in main()
38 TPM_CHECK(TlclDefineSpace(INDEX1, perm, 2 * sizeof(uint32_t))); in main()
39 TPM_CHECK(TlclDefineSpace(INDEX1, perm, sizeof(uint32_t))); in main()
45 TPM_EXPECT(TlclDefineSpace(INDEX0, perm, sizeof(uint32_t)), in main()
49 TPM_CHECK(TlclDefineSpace(INDEX1, perm, 2 * sizeof(uint32_t))); in main()
50 TPM_CHECK(TlclDefineSpace(INDEX1, perm, sizeof(uint32_t))); in main()
[all …]
Dreadonly.c38 uint32_t perm = TPM_NV_PER_WRITE_STCLEAR | TPM_NV_PER_PPWRITE; in InitializeSpaces() local
43 TlclDefineSpace(INDEX0, perm, 4); in InitializeSpaces()
45 TlclDefineSpace(INDEX1, perm, 4); in InitializeSpaces()
47 TlclDefineSpace(INDEX2, perm, 4); in InitializeSpaces()
49 TlclDefineSpace(INDEX3, perm, 4); in InitializeSpaces()
52 perm = TPM_NV_PER_READ_STCLEAR | TPM_NV_PER_WRITE_STCLEAR | in InitializeSpaces()
54 TlclDefineSpace(INDEX_INITIALIZED, perm, 1); in InitializeSpaces()
Dtpmtest_spaceperm.c21 uint32_t perm; in main() local
28 TPM_CHECK(TlclGetPermissions(INDEX0, &perm)); in main()
29 VbAssert((perm & PERMPPGL) == PERMPPGL); in main()
31 TPM_CHECK(TlclGetPermissions(INDEX1, &perm)); in main()
32 VbAssert((perm & PERMPP) == PERMPP); in main()
Dtpmtest_testsetup.c18 uint32_t perm; in main() local
33 perm = TPM_NV_PER_PPWRITE | TPM_NV_PER_GLOBALLOCK; in main()
34 TPM_CHECK(TlclDefineSpace(INDEX0, perm, sizeof(uint32_t))); in main()
39 perm = TPM_NV_PER_PPWRITE; in main()
40 TPM_CHECK(TlclDefineSpace(INDEX1, perm, sizeof(uint32_t))); in main()
/external/selinux/sepolgen/src/sepolgen/
Dobjectmodel.py84 def __init__(self, perm, dir, weight): argument
85 self.perm = perm
90 return "<sepolgen.objectmodel.PermMap %s %s %d>" % (self.perm,
131 cur[pm.perm] = pm
133 def get(self, obj, perm): argument
141 return self.classes[obj][perm]
143 def getdefault(self, obj, perm): argument
151 pm = self.classes[obj][perm]
153 return PermMap(perm, self.default_dir, self.default_weight)
158 for perm in perms:
[all …]
/external/mesa3d/src/mesa/program/
Dprog_noise.c79 unsigned char perm[512] = { 151, 160, 137, 91, 90, 15, variable
225 n0 = t0 * t0 * grad1(perm[i0 & 0xff], x0); in _mesa_noise1()
229 n1 = t1 * t1 * grad1(perm[i1 & 0xff], x1); in _mesa_noise1()
294 n0 = t0 * t0 * grad2(perm[ii + perm[jj]], x0, y0); in _mesa_noise2()
302 n1 = t1 * t1 * grad2(perm[ii + i1 + perm[jj + j1]], x1, y1); in _mesa_noise2()
310 n2 = t2 * t2 * grad2(perm[ii + 1 + perm[jj + 1]], x2, y2); in _mesa_noise2()
436 n0 = t0 * t0 * grad3(perm[ii + perm[jj + perm[kk]]], x0, y0, z0); in _mesa_noise3()
445 t1 * t1 * grad3(perm[ii + i1 + perm[jj + j1 + perm[kk + k1]]], x1, in _mesa_noise3()
455 t2 * t2 * grad3(perm[ii + i2 + perm[jj + j2 + perm[kk + k2]]], x2, in _mesa_noise3()
465 t3 * t3 * grad3(perm[ii + 1 + perm[jj + 1 + perm[kk + 1]]], x3, y3, in _mesa_noise3()
[all …]
/external/selinux/policycoreutils/sepolicy/sepolicy/
Dnetwork.py27 def get_types(src, tclass, perm): argument
28 allows=search([sepolicy.ALLOW],{sepolicy.SOURCE:src,sepolicy.CLASS:tclass, sepolicy.PERMS:perm})
31 …for i in map(lambda y: y[sepolicy.TARGET], filter(lambda x: set(perm).issubset(x[sepolicy.PERMS]),…
37 def get_network_connect(src, protocol, perm): argument
40 tlist = get_types(src, "%s_socket" % protocol, [perm])
42 d[(src,protocol,perm)] = []
54 d[(src,protocol,perm)].append((i, ["all ports with out defined types"]))
56 d[(src,protocol,perm)].append((i, ["all ports"]))
58 d[(src,protocol,perm)].append((i, ["all ports > 1024"]))
60 d[(src,protocol,perm)].append((i, ["all ports < 1024"]))
[all …]
Dbooleans.py33 def get_types(src, tclass, perm): argument
34 allows=search([sepolicy.ALLOW],{sepolicy.SOURCE:src,sepolicy.CLASS:tclass, sepolicy.PERMS:perm})
36 raise TypeError("The %s type is not allowed to %s any types" % (src, ",".join(perm)))
39 …for l in map(lambda y: y[sepolicy.TARGET], filter(lambda x: set(perm).issubset(x[sepolicy.PERMS]),…
Dcommunicate.py40 def get_types(src, tclass, perm): argument
41 allows=search([sepolicy.ALLOW],{sepolicy.SOURCE:src,sepolicy.CLASS:tclass, sepolicy.PERMS:perm})
43 raise ValueError("The %s type is not allowed to %s any types" % (src, ",".join(perm)))
46 …for l in map(lambda y: y[sepolicy.TARGET], filter(lambda x: set(perm).issubset(x[sepolicy.PERMS]),…
/external/sepolicy/tools/
Dsepolicy-check.c57 int check_perm(avtab_ptr_t current, perm_datum_t *perm) { in check_perm() argument
58 uint16_t perm_bitmask = 1U << (perm->s.value - 1); in check_perm()
66 perm_datum_t *perm, policydb_t *policy, avtab_t *avtab) { in expand_and_check() argument
89 match &= check_perm(cur, perm); in expand_and_check()
120 perm_datum_t *perm = NULL; in check_rule() local
152 perm = hashtab_search(cls->permissions.table, p); in check_rule()
153 if (perm == NULL) { in check_rule()
158 perm = hashtab_search(cls->comdatum->permissions.table, p); in check_rule()
159 if (perm == NULL) { in check_rule()
177 perm, policy, &policy->te_avtab); in check_rule()
[all …]
/external/jetty/src/java/org/eclipse/jetty/util/security/
DUnixCrypt.java129 byte[] perm = new byte[64];
138 perm[i] = (byte) 0;
153 perm[i] = (byte) k;
155 init_perm(PC1ROT, perm, 8); in init_perm() argument
162 perm[i] = temp[i] = 0;
173 perm[i] = temp[k];
176 init_perm(PC2ROT[j], perm, 8); in init_perm() argument
194 perm[i * 8 + j] = (byte) k;
198 init_perm(IE3264, perm, 8); in init_perm() argument
210 perm[k - 1] = (byte) (i + 1);
[all …]
/external/eigen/Eigen/src/OrderingMethods/
DOrdering.h60 void operator()(const MatrixType& mat, PermutationType& perm) in operator()
68 internal::minimum_degree_ordering(symm, perm); in operator()
73 void operator()(const SparseSelfAdjointView<SrcType, SrcUpLo>& mat, PermutationType& perm) in operator()
79 internal::minimum_degree_ordering(C, perm); in operator()
101 void operator()(const MatrixType& /*mat*/, PermutationType& perm) in operator()
103 perm.resize(0); in operator()
125 void operator() (const MatrixType& mat, PermutationType& perm) in operator()
147 perm.resize(n); in operator()
148 for (Index i = 0; i < n; i++) perm.indices()(p(i)) = i; in operator()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DAccessControlExceptionTest.java46 Permission perm = new AllPermission(); in testAccessControlExceptionStringPermission() local
47 new AccessControlException("001", perm); in testAccessControlExceptionStringPermission()
54 Permission perm = new UnresolvedPermission("unresolvedType", in testGetPermission() local
56 AccessControlException ex = new AccessControlException("001", perm); in testGetPermission()
57 assertSame(ex.getPermission(), perm); in testGetPermission() local
/external/mksh/src/
Dcheck.pl474 local($type, $perm, $rest, $c, $len, $name);
480 ($type, $perm, $rest) =
486 $perm = oct($perm) if $perm =~ /^\d+$/;
489 if (!chmod($perm, $name)) {
491 "$prog:$test{':long-name'}: can't chmod $perm $name - $!\n";
495 if (!mkdir($name, $perm)) {
497 "$prog:$test{':long-name'}: can't mkdir $perm $name - $!\n";
501 local($oumask) = umask($perm);
995 local($type, $perm, $rest, $c, $len, $name);
1003 ($type, $perm, $rest) = ($1, $2, $3);
[all …]
/external/eigen/Eigen/src/SparseCore/
DSparsePermutation.h48 permut_sparsematrix_product_retval(const PermutationType& perm, const MatrixType& matrix)
49 : m_permutation(perm), m_matrix(matrix)
82 PermutationMatrix<Dynamic,Dynamic,Index> perm;
84 perm = m_permutation;
86 perm = m_permutation.transpose();
90 sizes[perm.indices().coeff(it.index())]++;
94 tmp.insertByOuterInner(perm.indices().coeff(it.index()),j) = it.value();
112 operator*(const SparseMatrixBase<SparseDerived>& matrix, const PermutationBase<PermDerived>& perm)
114 …uct_retval<PermutationBase<PermDerived>, SparseDerived, OnTheRight, false>(perm, matrix.derived());
121 operator*( const PermutationBase<PermDerived>& perm, const SparseMatrixBase<SparseDerived>& matrix)
[all …]
DSparseSelfAdjointView.h42 …::Scalar,DestOrder,typename MatrixType::Index>& _dest, const typename MatrixType::Index* perm = 0);
45 …::Scalar,DestOrder,typename MatrixType::Index>& _dest, const typename MatrixType::Index* perm = 0);
138 …oduct<_MatrixTypeNested,UpLo> twistedBy(const PermutationMatrix<Dynamic,Dynamic,Index>& perm) const
140 return SparseSymmetricPermutationProduct<_MatrixTypeNested,UpLo>(m_matrix, perm);
314 …xType::Scalar,DestOrder,typename MatrixType::Index>& _dest, const typename MatrixType::Index* perm)
333 Index jp = perm ? perm[j] : j;
339 Index ip = perm ? perm[i] : i;
370 Index jp = perm ? perm[j] : j;
371 Index ip = perm ? perm[i] : i;
401 …ixType::Scalar,DstOrder,typename MatrixType::Index>& _dest, const typename MatrixType::Index* perm)
[all …]
DSparseColEtree.h61 …MatrixType& mat, IndexVector& parent, IndexVector& firstRowElt, typename MatrixType::Index *perm=0)
81 if(perm) pcol = perm[col];
103 if(perm) pcol = perm[col];
/external/apache-harmony/security/src/test/api/java/tests/api/java/security/
DAccessControlContextTest.java37 final Permission perm = new PropertyPermission("java.class.path", in test_Constructor$Ljava_security_ProtectionDomain() local
39 PermissionCollection col = perm.newPermissionCollection(); in test_Constructor$Ljava_security_ProtectionDomain()
40 col.add(perm); in test_Constructor$Ljava_security_ProtectionDomain()
45 acc.checkPermission(perm); in test_Constructor$Ljava_security_ProtectionDomain()
56 acc.checkPermission(perm); in test_Constructor$Ljava_security_ProtectionDomain()
/external/selinux/libsepol/src/
Dutil.c83 char *perm = NULL, *p; in sepol_av_to_string() local
101 perm = v.name; in sepol_av_to_string()
102 if (perm) { in sepol_av_to_string()
105 perm); in sepol_av_to_string()
Davrule_block.c180 perm_datum_t *perm; in is_perm_enabled() local
189 perm = hashtab_search(cladatum->permissions.table, perm_id); in is_perm_enabled()
190 if (perm == NULL && cladatum->comdatum != 0) { in is_perm_enabled()
193 perm = in is_perm_enabled()
197 if (perm == NULL) { in is_perm_enabled()
/external/libunwind/src/
Dos-linux.h209 char perm[16], dash = 0, colon = 0, *cp; in maps_next() local
269 cp = scan_string (cp, perm, sizeof (perm)); in maps_next()
284 if (perm[0] == 'r') in maps_next()
288 if (perm[1] == 'w') in maps_next()
292 if (perm[2] == 'x') in maps_next()
/external/libselinux/src/
DcheckAccess.c20 int selinux_check_access(const char * scon, const char * tcon, const char *class, const char *perm,… in selinux_check_access() argument
50 av = string_to_av_perm(sclass, perm); in selinux_check_access()
53 avc_log(SELINUX_ERROR, "Unknown permission %s for class %s", perm, class); in selinux_check_access()
/external/selinux/sepolgen/tests/
Dtest_objectmodel.py30 self.assertEquals(pm.perm, "mount")
37 self.assertEquals(pm.perm, "foo")
42 self.assertEquals(pm.perm, "bar")
/external/selinux/libselinux/src/
DcheckAccess.c20 int selinux_check_access(const char *scon, const char *tcon, const char *class, const char *perm, v… in selinux_check_access() argument
50 av = string_to_av_perm(sclass, perm); in selinux_check_access()
53 avc_log(SELINUX_ERROR, "Unknown permission %s for class %s", perm, class); in selinux_check_access()
/external/eigen/unsupported/Eigen/src/IterativeSolvers/
DDGMRES.h39 void sortWithPermutation (VectorType& vec, IndexType& perm, typename IndexType::Scalar& ncut)
41 eigen_assert(vec.size() == perm.size());
50 if ( vec(perm(j)) < vec(perm(j+1)) )
52 std::swap(perm(j),perm(j+1));
444 Matrix<Index,Dynamic,1>perm(it);
450 perm.setLinSpaced(it,0,it-1);
451 internal::sortWithPermutation(modulEig, perm, neig);
461 if(eig(perm(it-nbrEig-1)).imag() == RealScalar(0)) nbrEig++;
469 Sr.col(j) = schurofH.matrixU().col(perm(it-j-1));

12345678910