Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTFSD
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


SD Integrity level?

Dejan_MaksimovicDejan_Maksimovic Member - All Emails Posts: 315
via Email in NTFSD
Apologies up front if I am asking gibberish here... it has been some 5
years since I dabbled with Integrity Levels.

How does a driver query and set the integrity level for a file, i.e.
how do I also query/set the Integrity Level when querying/setting a
file's SD?

Comments

  • Martin_DrábMartin_Dráb Member - All Emails Posts: 81

    How does a driver query and set the integrity level for a file, i.e.

    how do I also query/set the Integrity Level when querying/setting a
    file's SD?

    Integrity lavel is represented by a mandatory label ACE stored in descriptor's SACL. So, you need to query object's SACL, add the ACE into it (or possibly modify existing one) and save new SACL into the descriptor (RtlSetSaclSecurityDescriptor). Then, you may use something like ZwSetSecurotyObject to change the security descriptor of the object. I think the SecurityInformation parameter may contain a flag indicating that you wish to set just the integrity level (and poissibly the mandatory integrity policy).

    Martin Dráb

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 15 Jun 2020 LIVE ONLINE
Writing WDF Drivers 22 June 2020 LIVE ONLINE
Internals & Software Drivers 28 Sept 2020 Dulles, VA