Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313619
b: refs/heads/master
c: 65ee7f4
h: refs/heads/master
i:
  313617: 63508f7
  313615: 095d322
v: v3
  • Loading branch information
Rafal Krypa authored and Casey Schaufler committed Jul 13, 2012
1 parent 5c11477 commit deb2fb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3518721a8932b2a243f415c374aef020380efc9d
refs/heads/master: 65ee7f45cf075adcdd6b6ef365f5a5507f1ea5c5
5 changes: 3 additions & 2 deletions trunk/security/smack/smackfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,9 @@ static void smk_rule_show(struct seq_file *s, struct smack_rule *srp, int max)
if (strlen(srp->smk_subject) >= max || strlen(srp->smk_object) >= max)
return;

if (srp->smk_access == 0)
return;

seq_printf(s, "%s %s", srp->smk_subject, srp->smk_object);

seq_putc(s, ' ');
Expand All @@ -532,8 +535,6 @@ static void smk_rule_show(struct seq_file *s, struct smack_rule *srp, int max)
seq_putc(s, 'a');
if (srp->smk_access & MAY_TRANSMUTE)
seq_putc(s, 't');
if (srp->smk_access == 0)
seq_putc(s, '-');

seq_putc(s, '\n');
}
Expand Down

0 comments on commit deb2fb7

Please sign in to comment.