Author: pebender
Date: Thu Jan 15 13:39:41 2009
New Revision: 4252

Modified:
    trunk/gar-minimyth/html/minimyth/document-changelog.txt
     
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.sh/init.d/security
     
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init/security.pm

Log:
- Fixed a bug with the security init script not setting the ownership
   permissions on home direcotry for the user 'minimyth' after set the uid
   and gid for the user 'minimyth'.



Modified: trunk/gar-minimyth/html/minimyth/document-changelog.txt
==============================================================================
--- trunk/gar-minimyth/html/minimyth/document-changelog.txt     (original)
+++ trunk/gar-minimyth/html/minimyth/document-changelog.txt     Thu Jan 15  
13:39:41 2009
@@ -85,6 +85,9 @@
        it is not.
      - Fixed a bug in LIRC that caused it to create the wrong sysfs device
        link, which prevented access to bInterfaceNumber.
+    - Fixed a bug with the security init script not setting the ownership
+      permissions on home direcotry for the user 'minimyth' after set the  
uid
+      and gid for the user 'minimyth'.

  Fixed build system
      - Fixed lib/libftdi so that it does detect the system's boost library  
and

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.sh/init.d/security
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.sh/init.d/security
  
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.sh/init.d/security
  
Thu Jan 15 13:39:41 2009
@@ -13,6 +13,9 @@
      /bin/sed  
-e "s%^minimyth:x:1000:%minimyth:x:${MM_SECURITY_USER_MINIMYTH_GID}:%" \
               -i /etc/group

+    # Make sure that uid and gid are for the home directory of  
user 'minimyth' are correct.
+    /bin/chown -Rh minimyth:minimyth /home/minimyth
+
      if /usr/bin/test -e /etc/ssl/certs/ca-bundle.crt ; then
          # Set permissions.
          /bin/chmod 0644 /etc/ssl/certs/ca-bundle.crt

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init/security.pm
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init/security.pm
    
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init/security.pm
    
Thu Jan 15 13:39:41 2009
@@ -6,6 +6,7 @@
  use strict;
  use warnings;

+use File::Find ();
  use MiniMyth ();

  sub start
@@ -21,6 +22,18 @@
      $minimyth->file_replace_variable(
          '/etc/group',
          { 'minimyth:x:1000:' => "minimyth:x:$user_minimyth_gid:" });
+
+    # Make sure that uid and gid are for the home directory of  
user 'minimyth' are correct.
+    {
+        my $uid = getpwnam('minimyth');
+        my $gid = getgrnam('minimyth');
+        File::Find::finddepth(
+            sub
+            {
+                chown($uid, $gid, $File::Find::name);
+            },
+            '/home/minimyth');
+    }

      if (-e '/etc/ssl/certs/ca-bundle.crt')
      {

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"minimyth-commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/minimyth-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to