Skip to content

Commit c3fa890

Browse files
committed
Create socket with tighter permissions
1 parent 7b3c079 commit c3fa890

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,10 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
458458

459459
# History
460460

461+
## 0.4.1 (13 December 2016)
462+
463+
- Create socket with user-only permissions, for better security.
464+
461465
## 0.4 (28 November 2016)
462466

463467
- Linux support via `xclip` instead of `pbcopy` (patch from Nelson Fernandez).

clipper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ func mergeSettings() {
191191
}
192192

193193
func main() {
194+
syscall.Umask(0077)
194195
// Set this up before we even know where our logfile is, in case we have to
195196
// bail early and print something to stderr.
196197
log.SetPrefix("clipper: ")

0 commit comments

Comments
 (0)