+static inline void rule_print_long(char *buf, int *pos,
+ struct smack_label *subject_label, struct smack_label *object_label,
+ const char *allow_str, const char *deny_str)
+{
+ memcpy(buf + *pos, subject_label->label, subject_label->len);
+ *pos += subject_label->len;
+ buf[(*pos)++] = ' ';
+ memcpy(buf + *pos, object_label->label, object_label->len);
+ *pos += object_label->len;
+ buf[(*pos)++] = ' ';
+ memcpy(buf + *pos, allow_str, ACC_LEN);
+ *pos += ACC_LEN;
+ if (deny_str != NULL) {
+ buf[(*pos)++] = ' ';
+ memcpy(buf + *pos, deny_str, ACC_LEN);
+ *pos += ACC_LEN;
+ }
+}
+