1 .TH "seccomp_version" 3 "18 February 2016" "paul@paul-moore.com" "libseccomp Documentation"
2 .\" //////////////////////////////////////////////////////////////////////////
4 .\" //////////////////////////////////////////////////////////////////////////
5 seccomp_version \- Query the libseccomp version information
6 .\" //////////////////////////////////////////////////////////////////////////
8 .\" //////////////////////////////////////////////////////////////////////////
10 .B #include <seccomp.h>
12 .B struct scmp_version {
13 .B unsigned int major;
14 .B unsigned int minor;
15 .B unsigned int micro;
18 .BI "const struct scmp_version *seccomp_version(" void ");"
20 Link with \fI\-lseccomp\fP.
22 .\" //////////////////////////////////////////////////////////////////////////
24 .\" //////////////////////////////////////////////////////////////////////////
27 .BR seccomp_version ()
30 functions return a pointer to a
32 struct which contains the version information of the currently loaded
33 libseccomp library. This function can be used by applications that need to
34 verify that they are linked to a specific libseccomp version at runtime.
36 The caller should not attempt to free the returned
39 .\" //////////////////////////////////////////////////////////////////////////
41 .\" //////////////////////////////////////////////////////////////////////////
43 .BR seccomp_version ()
44 function returns a pointer to a
46 structure on success, NULL on failure. The caller should not attempt to free
47 the returned structure.
48 .\" //////////////////////////////////////////////////////////////////////////
50 .\" //////////////////////////////////////////////////////////////////////////
54 int main(int argc, char *argv[])
56 const struct scmp_version *ver;
58 ver = seccomp_version();
70 .\" //////////////////////////////////////////////////////////////////////////
72 .\" //////////////////////////////////////////////////////////////////////////
74 While the seccomp filter can be generated independent of the kernel, kernel
75 support is required to load and enforce the seccomp filter generated by
78 The libseccomp project site, with more information and the source code
79 repository, can be found at https://github.com/seccomp/libseccomp. This tool,
80 as well as the libseccomp library, is currently under development, please
81 report any bugs at the project site or directly to the author.
82 .\" //////////////////////////////////////////////////////////////////////////
84 .\" //////////////////////////////////////////////////////////////////////////
85 Paul Moore <paul@paul-moore.com>
86 .\" //////////////////////////////////////////////////////////////////////////