How do you actually get the context? Does it need more syscalls than the
stat that we do by default
Yes, the context is an extended attribute, we get (or set) it through a call to libselinux, which knows how to exact it.

      #include <selinux/selinux.h>

      int getfilecon(const char *path, security_context_t *con);
      int lgetfilecon(const char *path, security_context_t *con);
      int fgetfilecon(int fd, security_context_t *con);

? If so, it needs to be its own flag (for
performance reasons).
Okay, will add a flag.
_______________________________________________
gnome-vfs-list mailing list
gnome-vfs-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list

Reply via email to