Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
Change-Id: I21026c7ff3d917562c37085bd5df9e8a167b36fe
INCLUDE(FindPkgConfig)
-pkg_check_modules(LPKGS REQUIRED glib-2.0 sqlite3 dlog db-util xdgmime vconf libtzplatform-config)
+pkg_check_modules(LPKGS REQUIRED glib-2.0 sqlite3 dlog db-util xdgmime vconf libtzplatform-config libsmack)
STRING(REPLACE ";" " " EXTRA_CFLAGS "${LPKGS_CFLAGS}")
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden")
BuildRequires: vconf-keys-devel
BuildRequires: pkgconfig(db-util)
BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(libsmack)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(xdgmime)
#include <glib.h>
#include <grp.h>
#include <pwd.h>
+#include <sys/smack.h>
#include <sys/stat.h>
#include "ail_private.h"
#include "ail_db.h"
strerror_r(errno, buf, sizeof(buf));
_E("FAIL : chown %s %d.%d, because %s", dir + 1, uid, grpinfo->gr_gid, buf);
}
- }
+ /* chsmack */
+ if(smack_setlabel(result_psswd, "_", SMACK_LABEL_ACCESS))
+ {
+ _E("failed chsmack -a \"_\" %s", result_psswd);
+ } else {
+ _D("chsmack -a \"_\" %s", result_psswd);
+ }
+ }
return result_psswd;
}