Re: hwclock and audit system

From: Alexander Dalloz (ad+lists_at_uni-x.org)
Date: 07/29/05

  • Next message: Mike Klinke: "Re: Fedora Core 3 Update: mkinitrd-4.1.18.1-1"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Fri, 29 Jul 2005 23:39:41 +0200
    
    
    
    

    Am Fr, den 29.07.2005 schrieb Berna Massingill um 21:53:

    > >> > > hwclock --show | cat
    > >> > >
    > >> > > Does that help?
    >
    > It did for me (newly-installed FC4 system on Dell Dimension,
    > hwclock from util-linux-2.12p-9.5).
    >
    > I notice also that:
    >
    > (*) hwclock produces output if run from one of the virtual text
    > consoles, but not if run from an xterm (unless piped to another
    > command, as you describe above).
    >
    > (*) /sbin/hwclock does not produce output, but if I copy /sbin/hwclock
    > to, say, /root/hwclock, /root/hwclock produces output.
    >
    > (*) If run as /sbin/hwclock, strace output indicates that the program
    > makes a call to ioctl, which works in a text console but not in an
    > xterm. If run as /root/hwclock, it doesn't make that call, and all
    > is well.

    Interesting. Maybe one of the SELinux gurus is willing to jump in an
    enlighten us mortals.

    > >> > No change. Why do you think it would?
    >
    > I'm interested in the explanation as well -- why piping the output
    > to another command makes a difference. A colleague also says "ask
    > him whether he found this by accident or whether he knew it would
    > work because of some deep understanding ...." So -- ?

    Fair question. I "know" it from

    https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=150153

    > >> http://fedora.redhat.com/docs/release-notes/fc4/errata/#sn-overview
    > >>
    > >> hwclock is in the list of daemons covered by the targeted policy. This
    > >> means hwclock may or may not have control over the terminal.
    >
    > Would I be right in guessing that this explains why putting the
    > executable in a different directory changes the results??
    >
    > >> Though it
    > >> seems this issue is a different one (on the German speaking Fedora list
    > >> the cat pipe helped recently[1]).
    > >>
    > >> Alexander
    > >>
    > >> [1]
    > >> https://www.redhat.com/archives/fedora-de-list/2005-June/msg00109.html
    >
    > If only I read German!

    Should have been just a reference, as the thread too shows a strace
    output.

    > -- blm

    Alexander

    -- 
    Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
    legal statement: http://www.uni-x.org/legal.html
    Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
    Serendipity 23:36:56 up 14 days, 4:09, load average: 0.12, 0.15, 0.17 
    
    

    
    

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    


  • Next message: Mike Klinke: "Re: Fedora Core 3 Update: mkinitrd-4.1.18.1-1"

    Relevant Pages

    • changing hwclocks timezone
      ... I have a friend whose time is being reported incorrectly with the date command ... Both commands are reporting the commands in UTC ... The output of the date and hwclock commands: ... I didn't have him check the bios to see what the time is reporting there. ...
      (Debian-User)
    • Re: Problem with samba time.
      ... > When i access on of the shares in smb.conf from a windows pc and create ... Please read the man page for hwclock, and search down to "An example is the ... command again, as I think you'll find you've really been using CUT {loosly ...
      (linux.redhat.install)
    • Re: How can I open a console window and run a command line?
      ... Look at the "change directory" command ... Consoles are opened automatically by the runtime for applications ...
      (microsoft.public.dotnet.languages.vc)
    • Re: OT Mac/RISC OS was Re: CMYK Tiff
      ... [setting up WebDAV on Mac OS X] ... > As long as it doesn't involve any mucking about in command line consoles ...
      (comp.sys.acorn.apps)
    • Re: hwclock and audit system
      ... hwclock from util-linux-2.12p-9.5). ... but not if run from an xterm (unless piped to another ... to another command makes a difference. ... >> seems this issue is a different one (on the German speaking Fedora list ...
      (Fedora)