Lines Matching refs:commit_number
1609 int commit_number, fd, retval; in semanage_commit_sandbox() local
1621 if ((commit_number = semanage_direct_get_serial(sh)) < 0) { in semanage_commit_sandbox()
1624 commit_number++; in semanage_commit_sandbox()
1626 snprintf(write_buf, sizeof(write_buf), "%d", commit_number); in semanage_commit_sandbox()
1643 retval = commit_number; in semanage_commit_sandbox()
1895 int fd, commit_number; in semanage_direct_get_serial() local
1925 commit_number = -1; in semanage_direct_get_serial()
1926 } else if (sscanf(buf, "%d", &commit_number) != 1) { in semanage_direct_get_serial()
1928 commit_number = 0; in semanage_direct_get_serial()
1929 } else if (commit_number < 0) { in semanage_direct_get_serial()
1934 commit_number = -1; in semanage_direct_get_serial()
1938 return commit_number; in semanage_direct_get_serial()