Browse Prior Art Database

Apply the Access Control Profile of a Given Directory to All the Paths Below the Directory

IP.com Disclosure Number: IPCOM000107390D
Original Publication Date: 1992-Feb-01
Included in the Prior Art Database: 2005-Mar-21
Document File: 2 page(s) / 49K

Publishing Venue

IBM

Related People

Feigel, RA: AUTHOR [+5]

Abstract

The Apply Function allows a Network Administrator to copy the Access Control Profile (ACL) of a specified directory to all the subdirectories and files below it. This new function solves the problem of having to copy the ACL of a specific directory to all the paths below it. (Image Omitted)

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 88% of the total text.

Apply the Access Control Profile of a Given Directory to All the Paths Below the Directory

       The Apply Function allows a Network Administrator to copy
the Access Control Profile (ACL) of a specified directory to all the
subdirectories and files below it.  This new function solves the
problem of having to copy the ACL of a specific directory to all the
paths below it.

                            (Image Omitted)

      The Access Control Profile of the given directory is obtained
by calling the API NetAccessGetInfo.  A recursive subroutine, as
shown in the flowchart, is called which traverses the directory tree
whose root is the given apply directory and applies the ACL of the
directory to all the files and subdirectories below it.

      The recursive subroutine is the main subroutine of the Apply
Function.  First, it calls the OS/2* API DosFindFirst to get the
first file entry that is one level below the apply directory.  If the
first entry is a subdirectory, then the recursive subroutine is
called with this entry as the parameter.  If the entry is a file and
if an ACL exists for this file, the ACL of the file is replaced with
the ACL of the apply directory.  The API DosFindFirst returns a
directory handle which is used in subsequent calls to DosFindNext.
Next, the recursive routine calls the API DosFindNext repeatedly to
get the next file entry until no more entries are left.  Each file
entry returned by DosFindNext is pr...