Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for filesystemIsNoSUID (0.24 sec)

  1. src/syscall/syscall_linux_test.go

    	if got != want {
    		if filesystemIsNoSUID(tmpBinary) {
    			t.Skip("skipping test when temp dir is mounted nosuid")
    		}
    		// formatted so the values are aligned for easier comparison
    		t.Errorf("expected %s,\ngot      %s", want, got)
    	}
    }
    
    // filesystemIsNoSUID reports whether the filesystem for the given
    // path is mounted nosuid.
    func filesystemIsNoSUID(path string) bool {
    	var st syscall.Statfs_t
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top