--- /dev/null
+~APP~ msg-service rwx
+msg-service ~APP~ rx
+~APP~ com.samsung.message rwx
+com.samsung.message ~APP~ rx
+~APP~ com.samsung.email rwx
+com.samsung.email ~APP~ rx
+~APP~ com.samsung.browser rwx
+com.samsung.browser ~APP~ rx
+~APP~ com.samsung.setting rwx
+com.samsung.setting ~APP~ rx
#define DEV_GROUP_PATH TOSTRING(SHAREDIR) "/dev_group_list"
#define SMACK_RULES_DIR "/etc/smack/accesses.d/"
-//#define SMACK_APPS_LABELS_DATABASE "/opt/dbspace/.privilege_control_all_apps_id.db"
-//#define SMACK_AVS_LABELS_DATABASE "/opt/dbspace/.privilege_control_all_avs_id.db"
#define SMACK_APP_LABEL_TEMPLATE "~APP~"
#define SMACK_SRC_FILE_SUFFIX "_src_file"
#define WRT_BASE_DEVCAP "WRT"
#define WRT_CLIENT_PATH "/usr/bin/wrt-client"
#define ACC_LEN 5
+#define SMACK_ANTIVIRUS_PERM "antivirus"
static int set_smack_for_wrt(char **smack_label, const char* widget_id);
}
}
+ // Add permisions from OSP_antivirus.samck file - only the OSP app can be an Anti Virus
+ ret = perm_to_smack(smack, app_av_id, APP_TYPE_OSP, SMACK_ANTIVIRUS_PERM);
+ if (PC_OPERATION_SUCCESS != ret) {
+ C_LOGE("perm_to_smack failed");
+ goto out;
+ }
+
if (have_smack() && smack_accesses_apply(smack)) {
C_LOGE("smack_accesses_apply failed");
ret = PC_ERR_INVALID_OPERATION;