[augeas-devel] augeas on AIX
Kristof Willaert
kristof.willaert at gmail.com
Mon Jun 15 08:12:37 UTC 2009
On Sun, Jun 14, 2009 at 12:19 AM, Matthew Palmer<matt at anchor.net.au> wrote:
> On Sat, Jun 13, 2009 at 03:22:33PM +0200, Kristof Willaert wrote:
>> When I truss (strace equivalent on AIX) the binary, I see the files
>> the lenses are
>> supposed to edit being stat'ed, but not opened, while on linux the files seem to
>> get opened when starting augtool.
>
> Perhaps the permissions on the lenses aren't appropriate, and whatever's
> trying to open the file is deciding to skip it? Personally, if it were my
> code, I'd just try the open and deal with the error, but who knows what
> wacky stuff AIX's libc might be doing...
The lenses are loaded fine, and they do show up when I run ls
/augeas/load/ in augtool.
Snippet from the truss output:
chdir("/") = 0
chdir("/usr/local/share/augeas/lenses/dist") = 0
statx("/usr/local/share/augeas/lenses/util.aug", 0x2FF2274C, 76, 0)
Err#2 ENOENT
statx("/usr/local/share/augeas/lenses/dist/util.aug", 0x2FF2274C, 76, 0) = 0
open("/usr/local/share/augeas/lenses/dist/util.aug", O_RDONLY) = 3
kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
kread(3, " ( *\n M o d u l e : U".., 4096) = 2205
kread(3, " ( *\n M o d u l e : U".., 4096) = 0
kread(3, " ( *\n M o d u l e : U".., 4096) = 0
close(3) = 0
open("/usr/local/lib/charset.alias", O_RDONLY) = 3
kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
kread(3, " # T h i s f i l e ".., 4096) = 634
kread(3, " # T h i s f i l e ".., 4096) = 0
close(3) = 0
statx("/usr/local/share/augeas/lenses/aliases.aug", 0x2FF2274C, 76, 0)
Err#2 ENOENT
statx("/usr/local/share/augeas/lenses/dist/aliases.aug", 0x2FF2274C, 76, 0) = 0
open("/usr/local/share/augeas/lenses/dist/aliases.aug", O_RDONLY) = 3
kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
kread(3, " ( * P a r s e m a i".., 4096) = 703
kread(3, " ( * P a r s e m a i".., 4096) = 0
kread(3, " ( * P a r s e m a i".., 4096) = 0
close(3) = 0
__libc_sbrk(0x00000000) = 0x20011380
statx("/usr/local/share/augeas/lenses/sudoers.aug", 0x2FF2274C, 76, 0)
Err#2 ENOENT
statx("/usr/local/share/augeas/lenses/dist/sudoers.aug", 0x2FF2274C, 76, 0) = 0
open("/usr/local/share/augeas/lenses/dist/sudoers.aug", O_RDONLY) = 3
kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
kread(3, " ( *\n M o d u l e : S".., 4096) = 4096
kread(3, " f i e l d ( k w : s t".., 4096) = 4096
kread(3, " . A c c e p t o n e".., 4096) = 4096
kread(3, " x t\n * T h e ".., 4096) = 4096
__libc_sbrk(0x00000000) = 0x20021390
kread(3, " * * * * * * * * * * * *".., 4096) = 1895
It is the config files that are not opened, and they have the default
permissions from the
operating system (mostly 644).
kristof
More information about the augeas-devel
mailing list