diff options
author | 2016-12-20 18:38:47 +0900 | |
---|---|---|
committer | 2016-12-20 18:38:47 +0900 | |
commit | e814fb3be30e3efe5552fc2e5532259a3edfd59d (patch) | |
tree | f643e0bd4ed0b17e0dabf78cbdcb3dd6db89f444 /meta-application-manager/recipes-application-framework/ail/files | |
parent | 6e07a5c3d5234c971549623435b18201a00fc56f (diff) |
Update ail
from: 6de70f2ffa8664b4b04693e9505566b118dc139a
to : 53a8f8cd04813083fb37936b7ffb2caad66c34d2
[NOTE]
This commit have been checked compiling,
but the command of pkgmgr have been failed
because the pkgmgr have not been updeted yet.
Change-Id: I7d2c200c6a37b1c5f857b2f47b3ac78a18174bf6
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'meta-application-manager/recipes-application-framework/ail/files')
-rw-r--r-- | meta-application-manager/recipes-application-framework/ail/files/ail_journal_perm_check.patch | 76 |
1 files changed, 19 insertions, 57 deletions
diff --git a/meta-application-manager/recipes-application-framework/ail/files/ail_journal_perm_check.patch b/meta-application-manager/recipes-application-framework/ail/files/ail_journal_perm_check.patch index 46ad215..1f901df 100644 --- a/meta-application-manager/recipes-application-framework/ail/files/ail_journal_perm_check.patch +++ b/meta-application-manager/recipes-application-framework/ail/files/ail_journal_perm_check.patch @@ -2,15 +2,15 @@ diff --git a/src/ail_db.c b/src/ail_db.c index 462c545..5c6bb5e 100755 --- a/src/ail_db.c +++ b/src/ail_db.c -@@ -100,15 +100,19 @@ static int ail_db_change_perm(const char *db_file, uid_t uid) +@@ -134,15 +134,19 @@ static int ail_db_change_perm(const char *db_file, uid_t uid) ret = chown(files[i], uid, userinfo->pw_gid); - SET_SMACK_LABEL(files[i],uid) + SET_SMACK_LABEL(files[i], uid); if (ret == -1) { + if (files[i] == journal_file && errno == ENOENT) + continue; - strerror_r(errno, buf, sizeof(buf)); -- _E("FAIL : chown %s %d.%d, because %s", db_file, uid, userinfo->pw_gid, buf); -+ _E("FAIL : chown %s %d.%d, because %s", files[i], uid, userinfo->pw_gid, buf); +- _E("FAIL : chown %s %d.%d, because %d", db_file, uid, userinfo->pw_gid, errno); ++ _E("FAIL : chown %s %d.%d, because %s", files[i], uid, userinfo->pw_gid, errno); + free(pwd_buf); return AIL_ERROR_FAIL; } @@ -18,9 +18,9 @@ index 462c545..5c6bb5e 100755 if (ret == -1) { + if (files[i] == journal_file && errno == ENOENT) + continue; - strerror_r(errno, buf, sizeof(buf)); -- _E("FAIL : chmod %s 0664, because %s", db_file, buf); -+ _E("FAIL : chmod %s 0664, because %s", files[i], buf); +- _E("FAIL : chmod %s 0664, because %d", db_file, errno); ++ _E("FAIL : chmod %s 0664, because %s", files[i], errno); + free(pwd_buf); return AIL_ERROR_FAIL; } } @@ -28,7 +28,7 @@ diff --git a/tool/src/ail_fota.c b/tool/src/ail_fota.c index 20d17c5..c523588 100644 --- a/tool/src/ail_fota.c +++ b/tool/src/ail_fota.c -@@ -176,15 +176,19 @@ static int initdb_change_perm(const char *db_file) +@@ -179,15 +179,19 @@ static int initdb_change_perm(const char *db_file) for (i = 0; files[i]; i++) { ret = chown(files[i], OWNER_ROOT, OWNER_ROOT); if (ret == -1) { @@ -54,15 +54,14 @@ diff --git a/tool/src/createdb.c b/tool/src/createdb.c index f203c74..05d101d 100644 --- a/tool/src/createdb.c +++ b/tool/src/createdb.c -@@ -97,15 +97,19 @@ static int createdb_change_perm(const char *db_file) +@@ -73,13 +73,17 @@ static int createdb_change_perm(const char *db_file) for (i = 0; files[i]; i++) { ret = chown(files[i], GLOBAL_USER, OWNER_ROOT); if (ret == -1) { + if (files[i] == journal_file && errno == ENOENT) + continue; - strerror_r(errno, buf, sizeof(buf)); -- _E("FAIL : chown %s %d.%d, because %s", db_file, OWNER_ROOT, OWNER_ROOT, buf); -+ _E("FAIL : chown %s %d.%d, because %s", files[i], OWNER_ROOT, OWNER_ROOT, buf); +- _E("FAIL : chown %s %d.%d, because %d", db_file, OWNER_ROOT, OWNER_ROOT, errno); ++ _E("FAIL : chown %s %d.%d, because %s", files[i], OWNER_ROOT, OWNER_ROOT, errno); return AIL_ERROR_FAIL; } @@ -70,59 +69,23 @@ index f203c74..05d101d 100644 if (ret == -1) { + if (files[i] == journal_file && errno == ENOENT) + continue; - strerror_r(errno, buf, sizeof(buf)); -- _E("FAIL : chmod %s 0664, because %s", db_file, buf); -+ _E("FAIL : chmod %s 0664, because %s", files[i], buf); +- _E("FAIL : chmod %s 0664, because %d", db_file, errno); ++ _E("FAIL : chmod %s 0664, because %s", files[i], errno); return AIL_ERROR_FAIL; } } -@@ -173,7 +177,6 @@ int main(int argc, char *argv[]) - _E(" %s is not removed",APP_INFO_DB_FILE); - if(remove(APP_INFO_DB_FILE_JOURNAL)) - _E(" %s is not removed",APP_INFO_DB_FILE_JOURNAL); -- return -1; - } - ret = setenv("AIL_INITDB", "1", 1); - _D("AIL_INITDB : %d", ret); diff --git a/tool/src/initdb.c b/tool/src/initdb.c index 75d5788..79df936 100755 --- a/tool/src/initdb.c +++ b/tool/src/initdb.c -@@ -174,15 +174,19 @@ static int initdb_change_perm(const char *db_file) - for (i = 0; files[i]; i++) { - ret = chown(files[i], GLOBAL_USER, OWNER_ROOT); - if (ret == -1) { -+ if (files[i] == journal_file && errno == ENOENT) -+ continue; - strerror_r(errno, buf, sizeof(buf)); -- _E("FAIL : chown %s %d.%d, because %s", db_file, OWNER_ROOT, OWNER_ROOT, buf); -+ _E("FAIL : chown %s %d.%d, because %s", files[i], OWNER_ROOT, OWNER_ROOT, buf); - return AIL_ERROR_FAIL; - } - - ret = chmod(files[i], S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); - if (ret == -1) { -+ if (files[i] == journal_file && errno == ENOENT) -+ continue; - strerror_r(errno, buf, sizeof(buf)); -- _E("FAIL : chmod %s 0664, because %s", db_file, buf); -+ _E("FAIL : chmod %s 0664, because %s", files[i], buf); - return AIL_ERROR_FAIL; - } - } -diff --git a/tool/src/syncdb.c b/tool/src/syncdb.c -index 247602b..1ba2490 100644 ---- a/tool/src/syncdb.c -+++ b/tool/src/syncdb.c -@@ -176,15 +176,19 @@ static int syncdb_change_perm(const char *db_file) +@@ -143,13 +143,17 @@ static int initdb_change_perm(const char *db_file) for (i = 0; files[i]; i++) { ret = chown(files[i], GLOBAL_USER, OWNER_ROOT); if (ret == -1) { + if (files[i] == journal_file && errno == ENOENT) + continue; - strerror_r(errno, buf, sizeof(buf)); -- _E("FAIL : chown %s %d.%d, because %s", db_file, OWNER_ROOT, OWNER_ROOT, buf); -+ _E("FAIL : chown %s %d.%d, because %s", files[i], OWNER_ROOT, OWNER_ROOT, buf); +- _E("FAIL : chown %s %d.%d, because %d", db_file, OWNER_ROOT, OWNER_ROOT, errno); ++ _E("FAIL : chown %s %d.%d, because %s", files[i], OWNER_ROOT, OWNER_ROOT, errno); return AIL_ERROR_FAIL; } @@ -130,9 +93,8 @@ index 247602b..1ba2490 100644 if (ret == -1) { + if (files[i] == journal_file && errno == ENOENT) + continue; - strerror_r(errno, buf, sizeof(buf)); -- _E("FAIL : chmod %s 0664, because %s", db_file, buf); -+ _E("FAIL : chmod %s 0664, because %s", files[i], buf); +- _E("FAIL : chmod %s 0664, because %d", db_file, errno); ++ _E("FAIL : chmod %s 0664, because %s", files[i], errno); return AIL_ERROR_FAIL; } } |