# In such case 'priv-rules-default-template.smack' will be used.
#
# - lines starting with '#' or empty lines are ignored
+#
+# IMPORTANT NOTICE:
+# This mechanism is only for special cases. Rules provided in privilege template
+# will only be accepted, when they are between privilege label and application
+# based labels (e.g. application process label, application read-only path label).
+# Other rules will be ignored.
http://tizen.org/privilege/internet System::Privilege::Internet default
std::string object = rule[1];
std::string permissions = rule[2];
+ if (subject[0] != '~' || object[0] != '~') {
+ LogWarning("Unsupported rule <"
+ << subject << " " << object << " " << permissions
+ << "> detected. Ignoring");
+ }
+
strReplace(subject, SMACK_PROCESS_LABEL_TEMPLATE, appProcessLabel);
strReplace(subject, SMACK_PRIVILEGE_LABEL_TEMPLATE, privilegeLabel);
strReplace(object, SMACK_PROCESS_LABEL_TEMPLATE, appProcessLabel);