| 1 |
Linux::Prctl -- Control process attributes through prctl |
| 2 |
======================================================== |
| 3 |
|
| 4 |
The linux prctl function allows you to control specific characteristics of a |
| 5 |
process' behaviour. Usage of the function is fairly messy though, due to |
| 6 |
limitations in C and linux. This module provides a nice non-messy interface. |
| 7 |
|
| 8 |
Besides prctl, this library also wraps libcap for complete capability handling. |
| 9 |
|
| 10 |
INSTALLATION |
| 11 |
|
| 12 |
You can download the latest code from http://github.com/seveas/Linux-Prctl |
| 13 |
|
| 14 |
To install this module type the following: |
| 15 |
|
| 16 |
perl Makefile.PL |
| 17 |
make |
| 18 |
make test |
| 19 |
(Some tests need root privileges, run 'sudo make test' if you trust me) |
| 20 |
make install |
| 21 |
|
| 22 |
DEPENDENCIES |
| 23 |
|
| 24 |
Linux kernel 2.6.18 or newer. Some functions are only available in later |
| 25 |
kernels, this is documented per function. libcap-dev (Debian) or libcap-devel |
| 26 |
(Fedora) is a required package too. |
| 27 |
|
| 28 |
COPYRIGHT AND LICENCE |
| 29 |
|
| 30 |
Copyright (C) 2011,2012 by Dennis Kaarsemaker |
| 31 |
|
| 32 |
This program is free software: you can redistribute it and/or modify |
| 33 |
it under the terms of the GNU General Public License as published by |
| 34 |
the Free Software Foundation, either version 3 of the License, or |
| 35 |
(at your option) any later version. |
| 36 |
|
| 37 |
This program is distributed in the hope that it will be useful, |
| 38 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 39 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 40 |
GNU General Public License for more details. |
| 41 |
|
| 42 |
You should have received a copy of the GNU General Public License |
| 43 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 44 |
|
| 45 |
--------------------------------------------------------------------- |
| 46 |
|
| 47 |
The documentation is heavily based on the linux manpages prctl and |
| 48 |
capabilities, which is covered by the following license: |
| 49 |
|
| 50 |
Permission is granted to make and distribute verbatim copies of this |
| 51 |
manual provided the copyright notice and this permission notice are |
| 52 |
preserved on all copies. |
| 53 |
|
| 54 |
Permission is granted to copy and distribute modified versions of this |
| 55 |
manual under the conditions for verbatim copying, provided that the |
| 56 |
entire resulting derived work is distributed under the terms of a |
| 57 |
permission notice identical to this one |
| 58 |
|
| 59 |
Since the Linux kernel and libraries are constantly changing, this |
| 60 |
manual page may be incorrect or out-of-date. The author(s) assume no |
| 61 |
responsibility for errors or omissions, or for damages resulting from |
| 62 |
the use of the information contained herein. The author(s) may not |
| 63 |
have taken the same level of care in the production of this manual, |
| 64 |
which is licensed free of charge, as they might when working |
| 65 |
professionally. |
| 66 |
|
| 67 |
Formatted or processed versions of this manual, if unaccompanied by |
| 68 |
the source, must acknowledge the copyright and authors of this work. |
| 69 |
License. |