Searched refs:gid (Results 1 - 17 of 17) sorted by relevance

/frameworks/base/core/java/android/net/
H A DCredentials.java28 /** gid of process. root peers may lie. */
29 private final int gid; field in class:Credentials
31 public Credentials (int pid, int uid, int gid) { argument
34 this.gid = gid;
46 return gid;
/frameworks/base/core/java/android/os/
H A DFileUtils.java73 * @param gid to apply through {@code chown}, or -1 to leave unchanged
76 public static int setPermissions(File path, int mode, int uid, int gid) { argument
77 return setPermissions(path.getAbsolutePath(), mode, uid, gid);
85 * @param gid to apply through {@code chown}, or -1 to leave unchanged
88 public static int setPermissions(String path, int mode, int uid, int gid) { argument
96 if (uid >= 0 || gid >= 0) {
98 Libcore.os.chown(path, uid, gid);
113 * @param gid to apply through {@code chown}, or -1 to leave unchanged
116 public static int setPermissions(FileDescriptor fd, int mode, int uid, int gid) { argument
124 if (uid >= 0 || gid >
[all...]
H A DProcess.java158 * First gid for applications to share resources. Used when forward-locking
165 * Last gid for applications to share resources. Used when forward-locking
376 * @param gid The group-id under which the process will run.
390 int uid, int gid, int[] gids,
396 return startViaZygote(processClass, niceName, uid, gid, gids,
555 * @param gid a POSIX gid that the new process shuold setgid() to
567 final int uid, final int gid,
581 argsForZygote.add("--setgid=" + gid);
712 * directly to a gid
388 start(final String processClass, final String niceName, int uid, int gid, int[] gids, int debugFlags, int mountExternal, int targetSdkVersion, String seInfo, String[] zygoteArgs) argument
565 startViaZygote(final String processClass, final String niceName, final int uid, final int gid, final int[] gids, int debugFlags, int mountExternal, int targetSdkVersion, String seInfo, String[] extraArgs) argument
[all...]
/frameworks/native/cmds/installd/
H A Dinstalld.h187 int ensure_dir(const char* path, mode_t mode, uid_t uid, gid_t gid);
192 int install(const char *pkgname, uid_t uid, gid_t gid, const char *seinfo);
195 int fix_uid(const char *pkgname, uid_t uid, gid_t gid);
202 int protect(char *pkgname, gid_t gid);
H A Dcommands.c31 int install(const char *pkgname, uid_t uid, gid_t gid, const char *seinfo) argument
38 if ((uid < AID_SYSTEM) || (gid < AID_SYSTEM)) {
39 ALOGE("invalid uid/gid: %d %d\n", uid, gid);
101 if (chown(pkgdir, uid, gid) < 0) {
139 int fix_uid(const char *pkgname, uid_t uid, gid_t gid) argument
145 if ((uid < AID_SYSTEM) || (gid < AID_SYSTEM)) {
146 ALOGE("invalid uid/gid: %d %d\n", uid, gid);
167 if (chown(pkgdir, uid, gid) <
776 mkinnerdirs(char* path, int basepos, mode_t mode, int uid, int gid, struct stat* statbuf) argument
[all...]
/frameworks/base/services/java/com/android/server/pm/
H A DInstaller.java191 public int install(String name, int uid, int gid, String seinfo) { argument
198 builder.append(gid);
248 public int fixUid(String name, int uid, int gid) { argument
255 builder.append(gid);
H A DPackageManagerService.java1598 String gidStr = parser.getAttributeValue(null, "gid");
1600 int gid = Process.getGidForName(gidStr);
1601 mGlobalGids = appendInt(mGlobalGids, gid);
1603 Slog.w(TAG, "<group> without gid at "
1718 String gidStr = parser.getAttributeValue(null, "gid");
1720 int gid = Process.getGidForName(gidStr);
1721 bp.gids = appendInt(bp.gids, gid);
1723 Slog.w(TAG, "<group> without gid at "
/frameworks/base/core/java/com/android/internal/content/
H A DPackageHelper.java285 public static boolean fixSdPermissions(String cid, int gid, String filename) { argument
287 int rc = getMountService().fixPermissionsSecureContainer(cid, gid, filename);
/frameworks/base/core/java/com/android/internal/os/
H A DZygoteInit.java223 private static void setEffectiveGroup(int gid) { argument
224 int errno = setregid(ROOT_GID, gid);
522 parsedArgs.uid, parsedArgs.gid,
673 * @param rgid real gid
674 * @param egid effective gid
H A DZygoteConnection.java223 pid = Zygote.forkAndSpecialize(parsedArgs.uid, parsedArgs.gid, parsedArgs.gids,
277 * <li> --setgid=<i>gid of child process, defaults to 0</i>
278 * <li> --setgroups=<i>comma-separated list of supplimentary gid's</i>
310 int gid = 0; field in class:ZygoteConnection.Arguments
400 gid = Integer.parseInt(
583 * <li> uid 0 (root) may specify any uid, gid, and setgroups() list
585 * operation. It may also specify any gid and setgroups() list it chooses.
587 * <li> Any other uid may not specify any uid, gid, or setgroups list. The
588 * uid and gid will be inherited from the requesting process.
625 "App UIDs may not specify uid's or gid'
[all...]
/frameworks/compile/mclinker/include/mcld/LD/
H A DArchive.h52 char gid[6]; ///< group id in ASCII decimal member in struct:mcld::Archive::MemberHeader
/frameworks/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp949 nScriptGroupSetInput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc) argument
952 (void *)gid, (void *)kid, (void *)alloc);
953 rsScriptGroupSetInput(con, (RsScriptGroup)gid, (RsScriptKernelID)kid, (RsAllocation)alloc);
957 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc) argument
960 (void *)gid, (void *)kid, (void *)alloc);
961 rsScriptGroupSetOutput(con, (RsScriptGroup)gid, (RsScriptKernelID)kid, (RsAllocation)alloc);
965 nScriptGroupExecute(JNIEnv *_env, jobject _this, RsContext con, jint gid) argument
967 LOG_API("nScriptGroupSetOutput, con(%p) group(%p)", con, (void *)gid);
968 rsScriptGroupExecute(con, (RsScriptGroup)gid);
/frameworks/base/core/java/android/os/storage/
H A DIMountService.java720 public int fixPermissionsSecureContainer(String id, int gid, String filename) argument
728 _data.writeInt(gid);
1166 int gid;
1167 gid = data.readInt();
1170 int resultCode = fixPermissionsSecureContainer(id, gid, filename);
1404 public int fixPermissionsSecureContainer(String id, int gid, String filename) argument
/frameworks/base/graphics/jni/
H A Dandroid_renderscript_RenderScript.cpp1287 nScriptGroupSetInput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc) argument
1290 (void *)gid, (void *)kid, (void *)alloc);
1291 rsScriptGroupSetInput(con, (RsScriptGroup)gid, (RsScriptKernelID)kid, (RsAllocation)alloc);
1295 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc) argument
1298 (void *)gid, (void *)kid, (void *)alloc);
1299 rsScriptGroupSetOutput(con, (RsScriptGroup)gid, (RsScriptKernelID)kid, (RsAllocation)alloc);
1303 nScriptGroupExecute(JNIEnv *_env, jobject _this, RsContext con, jint gid) argument
1305 LOG_API("nScriptGroupSetOutput, con(%p) group(%p)", con, (void *)gid);
1306 rsScriptGroupExecute(con, (RsScriptGroup)gid);
/frameworks/base/core/jni/
H A Dandroid_net_LocalSocketImpl.cpp805 creds.pid, creds.uid, creds.gid);
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageManagerTests.java500 private void assertDirOwnerGroupPerms(String reason, int uid, int gid, int perms, String path) { argument
525 if (stat.st_gid != gid) {
527 sb.append(gid);
/frameworks/base/services/java/com/android/server/
H A DMountService.java1682 public int fixPermissionsSecureContainer(String id, int gid, String filename) { argument
1688 mConnector.execute("asec", "fixperms", id, gid, filename);

Completed in 445 milliseconds