keyctl(2)


NAME

   keyctl - manipulate the kernel's key management facility

SYNOPSIS

   #include <keyutils.h>

   long keyctl(int cmd, ...);

DESCRIPTION

   keyctl() has a number of functions available:

   KEYCTL_GET_KEYRING_ID
          Ask for a keyring's ID.

   KEYCTL_JOIN_SESSION_KEYRING
          Join or start named session keyring.

   KEYCTL_UPDATE
          Update a key.

   KEYCTL_REVOKE
          Revoke a key.

   KEYCTL_CHOWN
          Set ownership of a key.

   KEYCTL_SETPERM
          Set perms on a key.

   KEYCTL_DESCRIBE
          Describe a key.

   KEYCTL_CLEAR
          Clear contents of a keyring.

   KEYCTL_LINK
          Link a key into a keyring.

   KEYCTL_UNLINK
          Unlink a key from a keyring.

   KEYCTL_SEARCH
          Search for a key in a keyring.

   KEYCTL_READ
          Read a key or keyring's contents.

   KEYCTL_INSTANTIATE
          Instantiate a partially constructed key.

   KEYCTL_NEGATE
          Negate a partially constructed key.

   KEYCTL_SET_REQKEY_KEYRING
          Set default request-key keyring.

   KEYCTL_SET_TIMEOUT
          Set timeout on a key.

   KEYCTL_ASSUME_AUTHORITY
          Assume authority to instantiate key.

   These  are  wrapped  by  libkeyutils  into individual functions (listed
   under SEE ALSO) to permit the compiler to check types.

RETURN VALUE

   On success keyctl() returns the serial number of the key it found.   On
   error, the value -1 will be returned and errno will have been set to an
   appropriate error.

ERRORS

   EACCES A key operation wasn't permitted.

   EDQUOT The key quota  for  the  caller's  user  would  be  exceeded  by
          creating a key or linking it to the keyring.

   EKEYEXPIRED
          An expired key was found or specified.

   EKEYREJECTED
          A rejected key was found or specified.

   EKEYREVOKED
          A revoked key was found or specified.

   ENOKEY No matching key was found or an invalid key was specified.

LINKING

   Although this is a Linux system call, it is not present in libc but can
   be found rather in libkeyutils.  When  linking,  -lkeyutils  should  be
   specified to the linker.

SEE ALSO

   keyctl(1), add_key(2), request_key(2), keyctl_chown(3),
   keyctl_clear(3), keyctl_describe(3), keyctl_describe_alloc(3),
   keyctl_get_keyring_ID(3), keyctl_instantiate(3),
   keyctl_join_session_keyring(3), keyctl_link(3), keyctl_negate(3),
   keyctl_read(3), keyctl_read_alloc(3), keyctl_revoke(3),
   keyctl_search(3), keyctl_set_reqkey_keyring(3), keyctl_set_timeout(3),
   keyctl_setperm(3), keyctl_unlink(3), keyctl_update(3), keyrings(7),
   request-key(8)

   The kernel source file Documentation/security/keys.txt.

COLOPHON

   This page is part of release 4.09 of the Linux man-pages project.  A
   description of the project, information about reporting bugs, and the
   latest version of this page, can be found at
   https://www.kernel.org/doc/man-pages/.





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.