projects
/
platform
/
core
/
appfw
/
pkgmgr-tool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db44d0b
)
Return error when smack_setlabel() failed
23/300123/1
author
Sangyoon Jang
<jeremy.jang@samsung.com>
Tue, 17 Oct 2023 06:36:20 +0000
(15:36 +0900)
committer
Sangyoon Jang
<jeremy.jang@samsung.com>
Tue, 17 Oct 2023 06:36:20 +0000
(15:36 +0900)
Change-Id: I08935eaea00aec98ac0c619c57fb6c764034e91c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/pkg_upgrade/src/upgrader.cc
patch
|
blob
|
history
diff --git
a/src/pkg_upgrade/src/upgrader.cc
b/src/pkg_upgrade/src/upgrader.cc
index
36c66e9
..
72d2599
100644
(file)
--- a/
src/pkg_upgrade/src/upgrader.cc
+++ b/
src/pkg_upgrade/src/upgrader.cc
@@
-316,8
+316,10
@@
int Upgrader::SetDbPermission(const string& path) {
return -1;
}
file.FSync();
- if (smack_setlabel(p.c_str(), kDbLabel, SMACK_LABEL_ACCESS))
+ if (smack_setlabel(p.c_str(), kDbLabel, SMACK_LABEL_ACCESS))
{
LOG(ERROR) << "failed chsmack -a " << kDbLabel << " " << path;
+ return -1;
+ }
}
return 0;