[Devel] [PATCH RHEL7 COMMIT] ve: mark DEF_PERMS feature deprecated

Konstantin Khorenko khorenko at virtuozzo.com
Wed Jun 22 03:40:09 PDT 2016


The commit is pushed to "branch-rh7-3.10.0-327.18.2.vz7.14.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.18.2.vz7.14.17
------>
commit f4255eae32883b47b6f3027cc07e66d5b982df6a
Author: Evgenii Shatokhin <eshatokhin at virtuozzo.com>
Date:   Wed Jun 22 14:40:09 2016 +0400

    ve: mark DEF_PERMS feature deprecated
    
    "def_perms" is not mentioned in the man pages for prlctl and vzctl.
    
    VE_FEATURE_DEF_PERMS is only used in the kernel code as a part of
    VE_FEATURES_DEF ("ve->features = VE_FEATURES_DEF;" in ve_create()).
    No code checks if the bit for this feature is set in ve->features.
    
    Let us mark this feature deprecated, similar to SYSFS and IPGRE
    features.
    
    https://jira.sw.ru/browse/PSBM-40280
    
    Signed-off-by: Evgenii Shatokhin <eshatokhin at virtuozzo.com>
    Reviewed-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 include/uapi/linux/vzcalluser.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/vzcalluser.h b/include/uapi/linux/vzcalluser.h
index 2b340cf..bc55bb3 100644
--- a/include/uapi/linux/vzcalluser.h
+++ b/include/uapi/linux/vzcalluser.h
@@ -115,7 +115,7 @@ struct env_create_param3 {
 
 #define VE_FEATURE_SYSFS	(1ULL << 0)	/* deprecated */
 #define VE_FEATURE_NFS		(1ULL << 1)
-#define VE_FEATURE_DEF_PERMS	(1ULL << 2)
+#define VE_FEATURE_DEF_PERMS	(1ULL << 2)	/* deprecated */
 #define VE_FEATURE_SIT          (1ULL << 3)
 #define VE_FEATURE_IPIP         (1ULL << 4)
 #define VE_FEATURE_PPP		(1ULL << 5)


More information about the Devel mailing list