---
name: "getsecsid"
section: "2"
platform: "linux"
package: "libselinux-dev"
version: "2002031409-4"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/getsecsid"
---

# getsecsid(2)

get process security identifiers

## NAME

getsecsid, getosecsid - get process security identifiers

## SYNOPSIS

**#include \<proc\_secure.h\>**

**security\_id\_t getsecsid(void);**\
 **security\_id\_t getosecsid(void);**

## DESCRIPTION

**getsecsid** returns the security identifier (SID) of the current process.

**getosecsid** returns the security identifier (SID) that the current process had prior to the last call to execve or execve\_secure.

## CONFORMING TO

## SEE ALSO

[**execve**(2)](/execve/2.md), [**execve\_secure**(2)](/execve_secure/2.md)
