Unveil /dev/urandom

This commit is contained in:
kpcyrd
2019-04-25 08:14:00 +02:00
parent ea70815589
commit da85aa2eb3

View File

@@ -65,6 +65,9 @@ pub fn init_openbsd() -> Result<()> {
unveil("/etc/resolv.conf", "r")
.map_err(|_| format_err!("Failed to call unveil"))?;
unveil("/dev/urandom", "r")
.map_err(|_| format_err!("Failed to call unveil"))?;
// disable further unveil calls
unveil("", "")
.map_err(|_| format_err!("Failed to call unveil"))?;