ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbrodets...@apache.org
Subject ambari git commit: AMBARI-19902. Ambari scripts have 777 permission which is a major security concern (change came from 2.4.x).(vbrodetskyi)
Date Wed, 08 Feb 2017 20:43:24 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 fc9e267a5 -> d68e89e19


AMBARI-19902. Ambari scripts have 777 permission which is a major security concern (change
came from 2.4.x).(vbrodetskyi)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d68e89e1
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d68e89e1
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d68e89e1

Branch: refs/heads/branch-2.5
Commit: d68e89e193fd2534bf44319f1bfee75cc9bbe8ba
Parents: fc9e267
Author: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Authored: Wed Feb 8 22:42:03 2017 +0200
Committer: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Committed: Wed Feb 8 22:42:03 2017 +0200

----------------------------------------------------------------------
 ambari-agent/pom.xml                         |  3 +++
 ambari-server/src/main/assemblies/server.xml | 21 +++++++++++++++++++++
 2 files changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d68e89e1/ambari-agent/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-agent/pom.xml b/ambari-agent/pom.xml
index 5051467..825987b 100644
--- a/ambari-agent/pom.xml
+++ b/ambari-agent/pom.xml
@@ -305,6 +305,7 @@
             </mapping>
            <mapping>
               <directory>/usr/lib/ambari-agent</directory>
+              <filemode>755</filemode>
               <username>root</username>
               <groupname>root</groupname>
               <sources>
@@ -315,6 +316,7 @@
             </mapping>
             <mapping>
               <directory>/usr/lib/python2.6/site-packages</directory>
+              <filemode>755</filemode>
               <username>root</username>
               <groupname>root</groupname>
               <sources>
@@ -325,6 +327,7 @@
             </mapping>
             <mapping>
               <directory>/var/lib/ambari-agent</directory>
+              <filemode>755</filemode>
               <username>root</username>
               <groupname>root</groupname>
               <sources>

http://git-wip-us.apache.org/repos/asf/ambari/blob/d68e89e1/ambari-server/src/main/assemblies/server.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/assemblies/server.xml b/ambari-server/src/main/assemblies/server.xml
index 1f82b19..ba5b096 100644
--- a/ambari-server/src/main/assemblies/server.xml
+++ b/ambari-server/src/main/assemblies/server.xml
@@ -124,6 +124,7 @@
 	  </excludes>
     </fileSet>
     <fileSet>
+      <fileMode>755</fileMode>
       <directory>src/main/resources/scripts</directory>
       <outputDirectory>/var/lib/ambari-server/resources/scripts</outputDirectory>
       <excludes>
@@ -131,6 +132,7 @@
       </excludes>
     </fileSet>
     <fileSet>
+      <fileMode>755</fileMode>
       <directory>${ambari-admin-dir}/target</directory>
       <outputDirectory>/var/lib/ambari-server/resources/views</outputDirectory>
       <includes>
@@ -138,10 +140,12 @@
       </includes>
     </fileSet>
     <fileSet>
+      <fileMode>755</fileMode>
       <directory>src/main/resources/upgrade/ddl</directory>
       <outputDirectory>/var/lib/ambari-server/resources/upgrade/ddl</outputDirectory>
     </fileSet>
     <fileSet>
+      <fileMode>755</fileMode>
       <directory>src/main/resources/upgrade/dml</directory>
       <outputDirectory>/var/lib/ambari-server/resources/upgrade/dml</outputDirectory>
     </fileSet>
@@ -150,6 +154,7 @@
       <outputDirectory>/var/lib/ambari-server/resources/common-services</outputDirectory>
     </fileSet>
     <fileSet>
+      <fileMode>755</fileMode>
       <directory>src/main/resources/upgrade/catalog</directory>
       <outputDirectory>/var/lib/ambari-server/resources/upgrade/catalog</outputDirectory>
     </fileSet>
@@ -158,10 +163,12 @@
       <outputDirectory>/var/lib/ambari-server/resources/stacks/${stack.distribution}</outputDirectory>
     </fileSet>
     <fileSet>
+      <fileMode>755</fileMode>
       <directory>src/main/python/ambari_server</directory>
       <outputDirectory>/usr/lib/python2.6/site-packages/ambari_server</outputDirectory>
     </fileSet>
     <fileSet>
+      <fileMode>755</fileMode>
       <directory>src/main/resources/custom_action_definitions</directory>
       <outputDirectory>/var/lib/ambari-server/resources/custom_action_definitions</outputDirectory>
     </fileSet>
@@ -251,58 +258,72 @@
       <outputDirectory>/var/lib/ambari-server/keys</outputDirectory>
     </file>
     <file>
+      <fileMode>755</fileMode>
       <source>target/classes/Ambari-DDL-Postgres-CREATE.sql</source>
       <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
     </file>
     <file>
+      <fileMode>755</fileMode>
       <source>src/main/resources/Ambari-DDL-Postgres-DROP.sql</source>
       <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
     </file>
     <file>
+      <fileMode>755</fileMode>
       <source>target/classes/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql</source>
       <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
     </file>
     <file>
+      <fileMode>755</fileMode>
       <source>src/main/resources/Ambari-DDL-Postgres-EMBEDDED-DROP.sql</source>
       <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
     </file>
     <file>
+      <fileMode>755</fileMode>
       <source>target/classes/Ambari-DDL-Oracle-CREATE.sql</source>
       <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
     </file>
     <file>
+      <fileMode>755</fileMode>
       <source>target/classes/Ambari-DDL-MySQL-CREATE.sql</source>
       <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
     </file>
     <file>
+      <fileMode>755</fileMode>
       <source>src/main/resources/Ambari-DDL-Oracle-DROP.sql</source>
       <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
     </file>
     <file>
+      <fileMode>755</fileMode>
       <source>src/main/resources/Ambari-DDL-MySQL-DROP.sql</source>
       <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
     </file>
     <file>
+      <fileMode>755</fileMode>
       <source>target/classes/Ambari-DDL-SQLServer-CREATE.sql</source>
       <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
     </file>
     <file>
+      <fileMode>755</fileMode>
       <source>target/classes/Ambari-DDL-SQLServer-CREATELOCAL.sql</source>
       <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
     </file>
     <file>
+      <fileMode>755</fileMode>
       <source>src/main/resources/Ambari-DDL-SQLServer-DROP.sql</source>
       <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
     </file>
     <file>
+      <fileMode>755</fileMode>
       <source>target/classes/Ambari-DDL-SQLAnywhere-CREATE.sql</source>
       <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
     </file>
     <file>
+      <fileMode>755</fileMode>
       <source>src/main/resources/Ambari-DDL-SQLAnywhere-DROP.sql</source>
       <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
     </file>
     <file>
+      <fileMode>755</fileMode>
       <source>${project.build.directory}/DBConnectionVerification.jar</source>
       <outputDirectory>/var/lib/ambari-server/resources</outputDirectory>
     </file>


Mime
View raw message