Repository: ambari Updated Branches: refs/heads/trunk 260c75fc8 -> 8b9370a55
AMBARI-21970. Enable sticky bit for curl_krb_cache (echekanskiy) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8b9370a5 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8b9370a5 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8b9370a5 Branch: refs/heads/trunk Commit: 8b9370a55207ecb6baccfd02337afe7c75532f7b Parents: 260c75f Author: Eugene Chekanskiy <echekans...@apache.org> Authored: Wed Sep 20 16:28:11 2017 +0300 Committer: Eugene Chekanskiy <echekans...@apache.org> Committed: Wed Sep 20 16:28:11 2017 +0300 ---------------------------------------------------------------------- .../resource_management/libraries/functions/curl_krb_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/8b9370a5/ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py ---------------------------------------------------------------------- diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py b/ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py index 72bc5c6..95e8625 100644 --- a/ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py +++ b/ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py @@ -111,7 +111,7 @@ def curl_krb_request(tmp_dir, keytab, principal, url, cache_file_prefix, curl_krb_cache_path = os.path.join(tmp_dir, "curl_krb_cache") if not os.path.exists(curl_krb_cache_path): os.makedirs(curl_krb_cache_path) - os.chmod(curl_krb_cache_path, 0777) + os.chmod(curl_krb_cache_path, 01777) ccache_file_path = "{0}{1}{2}_{3}_cc_{4}".format(curl_krb_cache_path, os.sep, cache_file_prefix, user, ccache_file_name) kerberos_env = {'KRB5CCNAME': ccache_file_path}