Skip to content
This repository

A specialized File class for Solaris that adds ACL support and door methods

branch: ffi

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 CHANGES
Octocat-spinner-32 MANIFEST
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 solaris-file.gemspec
README
== Description
  Adds ACL support and door methods for the File class on Solaris.

== Installation
  gem install solaris-file

== Synopsis
  require 'solaris/file'
   
  file = 'some_file.txt'
  acl_text = "user::rw-,user:nobody:r--,group::r--,group:sys:r--,mask:r--,other:r--"
   
  File.trivial?(file) # => true (probably)
  File.acl_write_text(acl_text)
   
  # No longer a trivial file
  File.trivial?(file) # => false
  File.acl_read(file).each{ |acl| p acl }

  # Door file?
  File.door?("/var/run/syslog_door") # => true
  File.ftype("/var/run/syslog_door") # => 'door'

== Known Issues
  Although this libary uses FFI, the instance methods will probably not work
  when using JRuby because of the underlying use of file descriptors. However,
  the singleton methods should work.

  Please report any other issues on the home page at:

  http://www.github.com/djberg96/solaris-file
   
== Future Plans
  Add acl_write methods that accept an array of ACLStruct's.
  Add support for extended file attributes.
   
== Copyright
  (C) 2005-2013 Daniel J. Berger
  All Rights Reserved
    
== Warranty
  This package is provided "as is" and without any express or
  implied warranties, including, without limitation, the implied
  warranties of merchantability and fitness for a particular purpose.
	
== License
  Artistic 2.0
    
== Author
  Daniel J. Berger
Something went wrong with that request. Please try again.