Security-manager: update of global user name 03/9503/3
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 24 May 2017 09:14:27 +0000 (11:14 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 25 May 2017 12:52:58 +0000 (12:52 +0000)
The global user name is 'afm'

AGL-Bug: SPEC-617

Change-Id: I8b129afb333fdf0e90fde5e364ce6b56ceb5d712
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9503
Reviewed-by: Scott Murray <scott.murray@konsulko.com>
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Matt Porter <mporter@konsulko.com>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
meta-app-framework/recipes-core/security-manager/security-manager/Removing-tizen-platform-config.patch

index 4830db2..1c9edcf 100644 (file)
@@ -94,7 +94,7 @@ index ae305d3..65cc8b5 100644
 +    if (!globaluid) {
 +        struct passwd pw, *p;
 +        char buf[4096];
-+        int rc = getpwnam_r("userapp", &pw, buf, sizeof buf, &p);
++        int rc = getpwnam_r("afm", &pw, buf, sizeof buf, &p);
 +        globaluid = (rc || p == NULL) ? 555 : p->pw_uid;
 +    }
      return globaluid;