Skip to content

Test failure on sd_graft #95

@Kissaki

Description

@Kissaki

When I run cargo test, the test tests::os::windows::local_socket_security_descriptor::sd_graft fails with This security ID may not be assigned as the owner of this object. (os error 1307).

To Reproduce
On Windows 11,

  1. run cargo test

Full output (partially redacted)

running 19 tests
test os::windows::local_socket::name_type::tests::bad ... ok
test os::windows::local_socket::name_type::tests::local ... ok
test os::windows::local_socket::name_type::tests::can_not_do_unix_things ... ok
test os::windows::local_socket::name_type::tests::remote ... ok
test tests::local_socket::no_server_file ... ok
test tests::local_socket::no_client_file ... ok
test tests::local_socket::no_server_namespaced ... ok
test tests::local_socket::no_client_namespaced ... ok
test tests::os::windows::local_socket_security_descriptor::sd_graft ... FAILED
test tests::os::windows::local_socket_security_descriptor::null_dacl ... ok
test tests::unnamed_pipe::basic ... ok
test tests::os::windows::named_pipe::bytes_unidir_client_to_server ... ok
test tests::os::windows::named_pipe::msg_bidir ... ok
test tests::os::windows::named_pipe::bytes_bidir ... ok
test tests::os::windows::named_pipe::msg_unidir_client_to_server ... ok
test tests::os::windows::named_pipe::bytes_unidir_server_to_client ... ok
test tests::os::windows::named_pipe::msg_unidir_server_to_client ... ok
test tests::local_socket::stream_namespaced ... ok
test tests::local_socket::stream_file ... ok

failures:

---- tests::os::windows::local_socket_security_descriptor::sd_graft stdout ----
SDDL of the running executable: O:S-1-5-21-XXXXXXXXXX-XXXXXXXXX-XXXXXXXXX-513D:(A;;FA;;;BA)(A;;FA;;;SY)(A;;0x1200a9;;;BU)(A;;0x1301bf;;;AU)
Trying name Ok(Name(NamedPipe("\\\\.\\pipe\\interprocess-test-740d7ddf\0")))...
Error:
   0: listener bind failed
   1: This security ID may not be assigned as the owner of this object. (os error 1307)

Location:
   src\..\tests\util\mod.rs:77

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.


failures:
    tests::os::windows::local_socket_security_descriptor::sd_graft

test result: FAILED. 18 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s

error: test failed, to rerun pass `--lib`

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions