diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2004-12-13 16:59:26 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2004-12-13 16:59:26 +0000 |
commit | c12ea67bb3cc692fd9367ae5672b6270bf491c28 (patch) | |
tree | fcb109c555b3a2c68059d6c733ef4eca97e9477b | |
parent | ff0836d7d011d979a78b16fa947aef3d24cee71b (diff) |
Use file permission 0600 for the link key file
-rw-r--r-- | hcid/security.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/security.c b/hcid/security.c index 7eb26258..1cb07da4 100644 --- a/hcid/security.c +++ b/hcid/security.c @@ -140,7 +140,7 @@ static void save_link_key(struct link_key *key) char sa[18], da[18]; int f, err; - f = open(hcid.key_file, O_RDWR | O_CREAT, 0); + f = open(hcid.key_file, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); if (f < 0) { syslog(LOG_ERR, "Link key database open failed. %s(%d)", strerror(errno), errno); |