Lines Matching refs:commit_number
1647 int commit_number, fd, retval; in semanage_commit_sandbox() local
1659 if ((commit_number = semanage_direct_get_serial(sh)) < 0) { in semanage_commit_sandbox()
1662 commit_number++; in semanage_commit_sandbox()
1664 snprintf(write_buf, sizeof(write_buf), "%d", commit_number); in semanage_commit_sandbox()
1681 retval = commit_number; in semanage_commit_sandbox()
1936 int fd, commit_number; in semanage_direct_get_serial() local
1966 commit_number = -1; in semanage_direct_get_serial()
1967 } else if (sscanf(buf, "%d", &commit_number) != 1) { in semanage_direct_get_serial()
1969 commit_number = 0; in semanage_direct_get_serial()
1970 } else if (commit_number < 0) { in semanage_direct_get_serial()
1975 commit_number = -1; in semanage_direct_get_serial()
1979 return commit_number; in semanage_direct_get_serial()