Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DCredentials.java29 private final int gid; field in Credentials
31 public Credentials (int pid, int uid, int gid) { in Credentials() argument
34 this.gid = gid; in Credentials()
46 return gid; in getGid()
/frameworks/base/core/java/com/android/internal/os/
DZygote.java87 public static int forkAndSpecialize(int uid, int gid, int[] gids, int debugFlags, in forkAndSpecialize() argument
94 uid, gid, gids, debugFlags, rlimits, mountExternal, seInfo, niceName, fdsToClose, in forkAndSpecialize()
102 native private static int nativeForkAndSpecialize(int uid, int gid, int[] gids,int debugFlags, in nativeForkAndSpecialize() argument
141 public static int forkSystemServer(int uid, int gid, int[] gids, int debugFlags, in forkSystemServer() argument
145 uid, gid, gids, debugFlags, rlimits, permittedCapabilities, effectiveCapabilities); in forkSystemServer()
150 native private static int nativeForkSystemServer(int uid, int gid, int[] gids, int debugFlags, in nativeForkSystemServer() argument
DZygoteConnection.java246 pid = Zygote.forkAndSpecialize(parsedArgs.uid, parsedArgs.gid, parsedArgs.gids, in runOnce()
348 int gid = 0; field in ZygoteConnection.Arguments
454 gid = Integer.parseInt( in parseArgs()
706 args.gid = peer.getGid(); in applyUidSecurityPolicy()
DZygoteInit.java247 private static void setEffectiveGroup(int gid) { in setEffectiveGroup() argument
248 int errno = setregid(ROOT_GID, gid); in setEffectiveGroup()
612 parsedArgs.uid, parsedArgs.gid, in startSystemServer()
/frameworks/native/cmds/installd/
Dinstalld.h197 int ensure_dir(const char* path, mode_t mode, uid_t uid, gid_t gid);
200 int create_profile_file(const char *pkgname, gid_t gid);
205 int install(const char *pkgname, uid_t uid, gid_t gid, const char *seinfo);
208 int fix_uid(const char *pkgname, uid_t uid, gid_t gid);
217 int protect(char *pkgname, gid_t gid);
Dcommands.c34 int install(const char *pkgname, uid_t uid, gid_t gid, const char *seinfo) in install() argument
41 if ((uid < AID_SYSTEM) || (gid < AID_SYSTEM)) { in install()
42 ALOGE("invalid uid/gid: %d %d\n", uid, gid); in install()
104 if (chown(pkgdir, uid, gid) < 0) { in install()
144 int fix_uid(const char *pkgname, uid_t uid, gid_t gid) in fix_uid() argument
150 if ((uid < AID_SYSTEM) || (gid < AID_SYSTEM)) { in fix_uid()
151 ALOGE("invalid uid/gid: %d %d\n", uid, gid); in fix_uid()
172 if (chown(pkgdir, uid, gid) < 0) { in fix_uid()
1111 void mkinnerdirs(char* path, int basepos, mode_t mode, int uid, int gid, in mkinnerdirs() argument
1120 chown(path, uid, gid); in mkinnerdirs()
Dinstalld.c556 gid_t gid = uid; in initialize_directories() local
558 if (copy_dir_files(keychain_added_dir, misc_added_dir, uid, gid) != 0) { in initialize_directories()
563 if (copy_dir_files(keychain_removed_dir, misc_removed_dir, uid, gid) != 0) { in initialize_directories()
Dutils.c1121 const int gid = multiuser_get_uid(userid, AID_EVERYBODY); in ensure_config_user_dirs() local
1125 if (fs_prepare_dir(config_user_path, 0750, uid, gid) == -1) { in ensure_config_user_dirs()
1132 int create_profile_file(const char *pkgname, gid_t gid) { in create_profile_file() argument
1147 if (fchown(fd, AID_SYSTEM, gid) < 0) { in create_profile_file()
/frameworks/base/core/java/android/os/
DFileUtils.java74 public static int setPermissions(File path, int mode, int uid, int gid) { in setPermissions() argument
75 return setPermissions(path.getAbsolutePath(), mode, uid, gid); in setPermissions()
86 public static int setPermissions(String path, int mode, int uid, int gid) { in setPermissions() argument
94 if (uid >= 0 || gid >= 0) { in setPermissions()
96 Os.chown(path, uid, gid); in setPermissions()
114 public static int setPermissions(FileDescriptor fd, int mode, int uid, int gid) { in setPermissions() argument
122 if (uid >= 0 || gid >= 0) { in setPermissions()
124 Os.fchown(fd, uid, gid); in setPermissions()
DProcess.java482 int uid, int gid, int[] gids, in start() argument
491 return startViaZygote(processClass, niceName, uid, gid, gids, in start()
604 final int uid, final int gid, in startViaZygote() argument
621 argsForZygote.add("--setgid=" + gid); in startViaZygote()
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp425 static pid_t ForkAndSpecializeCommon(JNIEnv* env, uid_t uid, gid_t gid, jintArray javaGids, in ForkAndSpecializeCommon() argument
505 int rc = setresgid(gid, gid, gid); in ForkAndSpecializeCommon()
507 ALOGE("setresgid(%d) failed", gid); in ForkAndSpecializeCommon()
590 JNIEnv* env, jclass, jint uid, jint gid, jintArray gids, in com_android_internal_os_Zygote_nativeForkAndSpecialize() argument
600 return ForkAndSpecializeCommon(env, uid, gid, gids, debug_flags, in com_android_internal_os_Zygote_nativeForkAndSpecialize()
606 JNIEnv* env, jclass, uid_t uid, gid_t gid, jintArray gids, in com_android_internal_os_Zygote_nativeForkSystemServer() argument
609 pid_t pid = ForkAndSpecializeCommon(env, uid, gid, gids, in com_android_internal_os_Zygote_nativeForkSystemServer()
Dandroid_net_LocalSocketImpl.cpp801 creds.pid, creds.uid, creds.gid); in socket_get_peer_credentials()
/frameworks/base/cmds/idmap/
Didmap.cpp117 gid_t gid = getgid(); in verify_root_or_system() local
119 return (uid == 0 && gid == 0) || (uid == AID_SYSTEM && gid == AID_SYSTEM); in verify_root_or_system()
Dscan.cpp67 int mkdir_p(const String8& path, uid_t uid, gid_t gid) in mkdir_p() argument
76 if (mkdir_p(path.getPathDir(), uid, gid) < 0) { in mkdir_p()
82 if (chown(path.string(), uid, gid) == -1) { in mkdir_p()
/frameworks/opt/telephony/src/java/android/telephony/
DSmsMessage.java777 String gid; in hasEmsSupport() local
781 gid = TelephonyManager.getDefault().getGroupIdLevel1(); in hasEmsSupport()
790 && currentConfig.mGid1.equalsIgnoreCase(gid)))) { in hasEmsSupport()
807 String gid; in shouldAppendPageNumberAsPrefix() local
811 gid = TelephonyManager.getDefault().getGroupIdLevel1(); in shouldAppendPageNumberAsPrefix()
820 && currentConfig.mGid1.equalsIgnoreCase(gid)))) { in shouldAppendPageNumberAsPrefix()
/frameworks/base/services/core/java/com/android/server/
DSystemConfig.java222 int gid = android.os.Process.getGidForName(gidStr); in readPermissionsFromXml() local
223 mGlobalGids = appendInt(mGlobalGids, gid); in readPermissionsFromXml()
388 int gid = Process.getGidForName(gidStr); in readPermission() local
389 perm.gids = appendInt(perm.gids, gid); in readPermission()
DMountService.java1877 public int fixPermissionsSecureContainer(String id, int gid, String filename) { in fixPermissionsSecureContainer() argument
1883 mConnector.execute("asec", "fixperms", id, gid, filename); in fixPermissionsSecureContainer()
/frameworks/base/services/core/java/com/android/server/pm/
DInstaller.java44 public int install(String name, int uid, int gid, String seinfo) { in install() argument
51 builder.append(gid); in install()
154 public int fixUid(String name, int uid, int gid) { in fixUid() argument
161 builder.append(gid); in fixUid()
DPackageInstallerSession.java865 final int gid = UserHandle.getSharedAppGid(uid); in finalizeAndFixContainer() local
866 if (!PackageHelper.fixSdPermissions(cid, gid, null)) { in finalizeAndFixContainer()
/frameworks/support/v8/renderscript/jni/
Dandroid_renderscript_RenderScript.cpp949 nScriptGroupSetInput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc) in nScriptGroupSetInput() argument
952 (void *)gid, (void *)kid, (void *)alloc); in nScriptGroupSetInput()
953 rsScriptGroupSetInput(con, (RsScriptGroup)gid, (RsScriptKernelID)kid, (RsAllocation)alloc); in nScriptGroupSetInput()
957 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc) in nScriptGroupSetOutput() argument
960 (void *)gid, (void *)kid, (void *)alloc); in nScriptGroupSetOutput()
961 rsScriptGroupSetOutput(con, (RsScriptGroup)gid, (RsScriptKernelID)kid, (RsAllocation)alloc); in nScriptGroupSetOutput()
965 nScriptGroupExecute(JNIEnv *_env, jobject _this, RsContext con, jint gid) in nScriptGroupExecute() argument
967 LOG_API("nScriptGroupSetOutput, con(%p) group(%p)", con, (void *)gid); in nScriptGroupExecute()
968 rsScriptGroupExecute(con, (RsScriptGroup)gid); in nScriptGroupExecute()
/frameworks/compile/mclinker/include/mcld/LD/
DArchive.h47 char gid[6]; ///< group id in ASCII decimal member
/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java322 public static boolean fixSdPermissions(String cid, int gid, String filename) { in fixSdPermissions() argument
324 int rc = getMountService().fixPermissionsSecureContainer(cid, gid, filename); in fixSdPermissions()
/frameworks/base/core/java/android/os/storage/
DIMountService.java800 public int fixPermissionsSecureContainer(String id, int gid, String filename) in fixPermissionsSecureContainer() argument
808 _data.writeInt(gid); in fixPermissionsSecureContainer()
1319 int gid; in onTransact() local
1320 gid = data.readInt(); in onTransact()
1323 int resultCode = fixPermissionsSecureContainer(id, gid, filename); in onTransact()
1625 public int fixPermissionsSecureContainer(String id, int gid, String filename) in fixPermissionsSecureContainer() argument
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp1383 nScriptGroupSetInput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc) in nScriptGroupSetInput() argument
1386 (void *)gid, (void *)kid, (void *)alloc); in nScriptGroupSetInput()
1387 …rsScriptGroupSetInput((RsContext)con, (RsScriptGroup)gid, (RsScriptKernelID)kid, (RsAllocation)all… in nScriptGroupSetInput()
1391 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc) in nScriptGroupSetOutput() argument
1394 (void *)gid, (void *)kid, (void *)alloc); in nScriptGroupSetOutput()
1395 …rsScriptGroupSetOutput((RsContext)con, (RsScriptGroup)gid, (RsScriptKernelID)kid, (RsAllocation)al… in nScriptGroupSetOutput()
1399 nScriptGroupExecute(JNIEnv *_env, jobject _this, jlong con, jlong gid) in nScriptGroupExecute() argument
1401 LOG_API("nScriptGroupSetOutput, con(%p) group(%p)", (RsContext)con, (void *)gid); in nScriptGroupExecute()
1402 rsScriptGroupExecute((RsContext)con, (RsScriptGroup)gid); in nScriptGroupExecute()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java508 private void assertDirOwnerGroupPermsIfExists(String reason, int uid, int gid, int perms, in assertDirOwnerGroupPermsIfExists() argument
537 if (stat.st_gid != gid) { in assertDirOwnerGroupPermsIfExists()
539 sb.append(gid); in assertDirOwnerGroupPermsIfExists()