summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-04-08 01:31:36 +0530
committerAndinus <andinus@nand.sh>2020-04-08 01:31:36 +0530
commitadf721a079bb3f37576e47280eb7ae82a6567d7b (patch)
tree76ddc2bc9d5510cc5f8dedd5e66da9e5674dbb12
parent636d06c5cde0e0072fccd6d8c93dec9b79120028 (diff)
downloadlynx-adf721a079bb3f37576e47280eb7ae82a6567d7b.tar.gz
Add wrapper around unix.UnveilBlock
-rw-r--r--block.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/block.go b/block.go
new file mode 100644
index 0000000..c16a1eb
--- /dev/null
+++ b/block.go
@@ -0,0 +1,9 @@
+package lynx
+
+import "golang.org/x/sys/unix"
+
+// UnveilBlock is just a wrapper around unix.UnveilBlock, it does
+// nothing extra. You should use unix.UnveilBlock.
+func UnveilBlock() error {
+	return unix.UnveilBlock()
+}