Cargo Features
[dependencies]
junction = { version = "1.2.0", default-features = false, features = ["nightly", "unstable_admin"] }
- default = unstable_admin
-
The
unstable_admin
feature is set by default wheneverjunction
is added without
somewhere in the dependency tree.default-features = false - nightly
-
Unstable flag
Flag for trying out new rust language features
- unstable_admin default
-
Unstable flag
Enable the SE_BACKUP_NAME and SE_RESTORE_NAME access privileges. They are needed to open system directory junctions (such as "C:\Documents and Settings") to read. For more info, please read https://en.wikipedia.org/wiki/NTFS_reparse_point#Directory_junctions.
Why is this flag unstable?
Maybe it would be better to save and restore the old privileges after setting SE_RESTORE_NAME. A user with SE_RESTORE_NAME privilege could easily overwrite almost any file on the system.