Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192391
b: refs/heads/master
c: b380de9
h: refs/heads/master
i:
  192389: 6a7398b
  192387: 4f0bc09
  192383: 3f1a100
v: v3
  • Loading branch information
Tetsuo Handa authored and James Morris committed Mar 2, 2010
1 parent b7f73fc commit 702f4fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: c1e992b99603a84d7debb188542b64f2d9232c07
refs/heads/master: b380de9e54ec354ccac55fd9a611ffe28b4daa76
10 changes: 3 additions & 7 deletions trunk/security/tomoyo/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,6 @@ static bool tomoyo_print_single_path_acl(struct tomoyo_io_buffer *head,
{
int pos;
u8 bit;
const char *atmark = "";
const char *filename;
const u16 perm = ptr->perm;

Expand All @@ -1441,8 +1440,7 @@ static bool tomoyo_print_single_path_acl(struct tomoyo_io_buffer *head,
continue;
msg = tomoyo_sp2keyword(bit);
pos = head->read_avail;
if (!tomoyo_io_printf(head, "allow_%s %s%s\n", msg,
atmark, filename))
if (!tomoyo_io_printf(head, "allow_%s %s\n", msg, filename))
goto out;
}
head->read_bit = 0;
Expand All @@ -1466,8 +1464,6 @@ static bool tomoyo_print_double_path_acl(struct tomoyo_io_buffer *head,
ptr)
{
int pos;
const char *atmark1 = "";
const char *atmark2 = "";
const char *filename1;
const char *filename2;
const u8 perm = ptr->perm;
Expand All @@ -1482,8 +1478,8 @@ static bool tomoyo_print_double_path_acl(struct tomoyo_io_buffer *head,
continue;
msg = tomoyo_dp2keyword(bit);
pos = head->read_avail;
if (!tomoyo_io_printf(head, "allow_%s %s%s %s%s\n", msg,
atmark1, filename1, atmark2, filename2))
if (!tomoyo_io_printf(head, "allow_%s %s %s\n", msg,
filename1, filename2))
goto out;
}
head->read_bit = 0;
Expand Down

0 comments on commit 702f4fe

Please sign in to comment.