projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44d01dc
)
selinux: set context for real file name not the temp name
author
Kay Sievers
<kay.sievers@vrfy.org>
Thu, 13 Mar 2008 14:54:21 +0000
(15:54 +0100)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Thu, 13 Mar 2008 14:54:21 +0000
(15:54 +0100)
udev_node.c
patch
|
blob
|
history
diff --git
a/udev_node.c
b/udev_node.c
index
bd58a6c
..
6ca0601
100644
(file)
--- a/
udev_node.c
+++ b/
udev_node.c
@@
-164,7
+164,7
@@
static int node_symlink(const char *node, const char *slink)
strlcpy(slink_tmp, slink, sizeof(slink_tmp));
strlcat(slink_tmp, TMP_FILE_EXT, sizeof(slink_tmp));
unlink(slink_tmp);
- selinux_setfscreatecon(slink
_tmp
, NULL, S_IFLNK);
+ selinux_setfscreatecon(slink, NULL, S_IFLNK);
retval = symlink(target, slink_tmp);
selinux_resetfscreatecon();
if (retval != 0) {