Commit Graph

47 Commits

Author SHA1 Message Date
Dietmar Maurer
d146e52028 check_api2_permissions: avoid warning about uninitialized value 2017-03-31 17:05:52 +02:00
Dietmar Maurer
e83e0ed584 RPCEnvironment: removed check_volume_access() to avoid cyclic dependency
moved to PVE::Storage
2017-01-18 17:35:50 +01:00
Dietmar Maurer
c104e4abe6 PVE::PCEnvironment: use new PVE::RESTEnvironment as base class 2017-01-18 13:25:51 +01:00
Dietmar Maurer
86c4f1e6d1 setup_default_cli_env: expect $class as first parameter 2017-01-12 13:53:18 +01:00
Dietmar Maurer
5ae5900d26 PVE/RPCEnvironment.pm: new function setup_default_cli_env
Convenience function for command line tools.
2017-01-12 10:01:17 +01:00
Fabian Grünbichler
7b6dfe82df Add is_worker to RPCEnvironment
after forking the actual worker process, the child/worker
sets a flag that can be checked later on by methods called
in the worker.

used in the ZFS storage plugins in pve-storage to decide on
a short or long default timeout for ZFS operations.
2016-03-15 16:47:11 +01:00
Wolfgang Bumiller
66c6293830 Fix #861: use safer sprintf formatting 2016-01-08 12:52:15 +01:00
Dietmar Maurer
5f494227b8 remove path related code from check_volume_access() 2013-10-01 12:09:51 +02:00
Alexandre Derumier
854f1dceb6 check_volume_access : use parse_volname instead path
to avoid extra calls for some storageplugins (zfs,nexenta).

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-10-01 11:40:57 +02:00
Dietmar Maurer
b78ce7c252 remove CGI.pm related code
New pveproxy does not need that.
2013-04-15 12:34:41 +02:00
Dietmar Maurer
e5ae548727 fix access permissions for backup files
bump version to 1.0-26
2013-02-28 10:01:04 +01:00
Dietmar Maurer
1e15ebe7b5 untaint path 2012-06-06 13:06:51 +02:00
Dietmar Maurer
3036e8b1be add ability to fork cli workers in background 2012-04-24 10:10:12 +02:00
Dietmar Maurer
1cf154b72f allow users to change his own password 2012-04-11 09:40:42 +02:00
Dietmar Maurer
a69bbe2e7e fix buf in userid-param permission check 2012-02-22 10:53:08 +01:00
Dietmar Maurer
09d270580b use full name for verify_user 2012-02-15 07:06:58 +01:00
Dietmar Maurer
3eac4e3570 fix bug in check_volume_access (fixes vzrestore) 2012-02-13 09:58:37 +01:00
Dietmar Maurer
17ecec711f fix syntax 2012-02-09 11:15:59 +01:00
Dietmar Maurer
fef1bc1717 moved check_volume_access from qemu-server 2012-02-06 12:35:39 +01:00
Dietmar Maurer
4fb3cc5841 remove buggy check_storage_perm
Storage permissions are automatically inherited from pool, so this method is more or less useless.
2012-02-06 12:04:21 +01:00
Dietmar Maurer
a23cec1f94 new helper functions 2012-02-01 11:14:29 +01:00
Dietmar Maurer
c4a776a657 new test option 'require_param' - code cleanup 2012-02-01 08:12:21 +01:00
Dietmar Maurer
7a7a517a52 add special test for pool 2012-01-31 08:23:33 +01:00
Dietmar Maurer
82b63965eb cleanup permission checks
Added new Real.AllocateUser priviledge
2012-01-27 08:34:12 +01:00
Dietmar Maurer
39c85db819 add pool API 2012-01-26 12:42:01 +01:00
Dietmar Maurer
e3a3a0d746 implement helper to check if we can modify permission 2012-01-26 08:25:16 +01:00
Dietmar Maurer
8ade28e685 fix NoAccess when inheritred from pool 2012-01-26 06:13:59 +01:00
Dietmar Maurer
efce1d5767 remove debug message 2012-01-26 06:03:06 +01:00
Dietmar Maurer
4bc17477d8 start pool support, return NoAccess role, fix acl cache 2012-01-25 14:32:12 +01:00
Dietmar Maurer
f8cc5a5f36 moved permission check code from REST.pm 2012-01-25 06:40:08 +01:00
Dietmar Maurer
b9180ed235 simplify filter_groups 2012-01-23 09:58:03 +01:00
Dietmar Maurer
37d45debb1 new API to change password
Started to implement fine grained permission checks.
2012-01-20 12:45:24 +01:00
Dietmar Maurer
76c377c1c4 use new decode_utf8_parameters() to decode CGI parameters 2012-01-19 14:06:41 +01:00
Dietmar Maurer
7070c1aee5 rename user_enabled to check_user_enabled
And add $noerr parameter.
2012-01-19 06:55:53 +01:00
Dietmar Maurer
be6ea72391 cleanup code to get/set result_attributes 2011-12-21 07:06:37 +01:00
Dietmar Maurer
272fe9ffa2 add a way to return file changes (diffs) 2011-12-20 11:19:50 +01:00
Dietmar Maurer
e42eedbca4 add new environment type 'ha'
We use this to mark tasks started by HA manager (rgmanager agents).
2011-12-13 10:09:15 +01:00
Dietmar Maurer
7b24102dc5 add support for delayed parameter parsing
We need that to disable file upload for normal API request (avoid DOS attacs).
2011-11-03 07:11:34 +01:00
Dietmar Maurer
b28410fcf4 exit when child finish
Some programs daemonize without closing stdout/stderr, but we do not want to wait until all childs closed stdout/stderr.
2011-10-22 10:43:17 +02:00
Dietmar Maurer
5a941ebef2 do not close STDIN if rune in foreground 2011-10-19 07:30:44 +02:00
Dietmar Maurer
527b2e7aed sen TERM to all pgrp members 2011-10-18 07:47:09 +02:00
Dietmar Maurer
8d6e045f21 correctly catch EINTR 2011-10-18 07:26:43 +02:00
Dietmar Maurer
d33d0735a9 fix nockeck parameter in active_workers 2011-10-13 11:53:12 +02:00
Dietmar Maurer
5bf71a968e fix bug in fork_worker 2011-10-11 08:37:32 +02:00
Dietmar Maurer
b9e47e5738 implement a way to abort workers 2011-09-14 08:14:43 +02:00
Dietmar Maurer
f6f2d51fa9 flush output file handle and send kill to whole process group 2011-09-12 13:50:21 +02:00
Dietmar Maurer
2c3a6c0aaa iimported from svn 'pve-access-control/trunk' 2011-08-23 07:27:48 +02:00