Windows Vista Public Beta 1 - Part 2
3. Technical Improvements Page 2
Review Pages
2. Technical Improvements Page 1
3. Technical Improvements Page 2
4. Technical Improvements Page 3
5. Technical Improvements Page 4
6. Technical Improvements Page 5
7. Technical Improvements Page 6
8. Technical Improvements Page 7
9. Technical Improvements Page 8
10. Visual Improvements & New features Page 1
11. Visual Improvements & New features Page 2
12. Visual Improvements & New features Page 3
13. Visual Improvements & New features Page 4
14. Visual Improvements & New features Page 5
15. Visual Improvements & New features Page 6
16. Visual Improvements & New features Page 7
17. New Applications Page 1
18. New Applications Page 2
19. Other improvements and Tweaks
20. Current Bugs and other Problems
21. Final thoughts
User Account Protection (UAP) : Windows Vista changes the traditional Windows privilege model to help prevent users from running programs that attempt to perform operations that the user doesn't really intend or authorize. To that end, User Account Protection (formerly called Least-privileged User Account, or LUA) enables users to run at low privilege most of the time, while being able to easily run applications requiring more privilege as necessary. There are two key things to consider when building applications to make use of User Account Protection (UAP): the privilege specification model and the standard UAP execution model.
Privilege Specification Model : UAP extends the access token system already in use for managing Windows logons with a new token mechanism that supplies each administrator logon with two security tokens, a UAP token and a full admin token.
Access tokens contain a logon session's security information, identifying a user and their groups and privileges. The operating system uses the token to control access to securable objects and controls the ability of the user to perform various system-related operations on the local computer. UAP tokens are a special kind of access token that define the minimum privileges needed to run-the default interactive logon privileges of a Windows Vista user on a system with UAP support enabled. The second, full admin token has the maximum privileges authorized for the admin account.
UAP Execution Model : Beyond tokens, the basic execution model for running applications under UAP uses existing process-creation functions (ShellExecute to call CreateProcess) augmented by UAP. There are four parts to the UAP execution model:- The Application Information Service (AIS) is a system service that launches applications requiring elevated privileges by first obtaining user consent (through the Consent User Interface) for privilege elevation, and then creating a new process for the application with the user's full token.
- The Consent User Interface is launched by the AIS and runs with system privilege to get consent or credentials from the user in order to launch the application with a full token.
- Requested Execution Level is a characteristic of an application that indicates which token (UAP or full) to use when it is launched. The system determines an application's Requested Execution Level by reading requestedExecutionLevel from the application's manifest, querying the Windows Vista AppCompat database entry, or by using the Windows Vista installer detection technology.
- The AppCompat database supplied with Windows Vista contains information about the most common legacy applications that require privilege elevation.
Here's an example of the control flow of running an application under UAP:
- When a user tries to start an application, the Windows shell uses ShellExecute to call CreateProcess.
- CreateProcess determines whether the application requires elevated privilege by querying the application manifest, the Windows Vista AppCompat database, and the system installer detection technology in that order.
- If the application does not require elevated privilege the process is created through NtCreateProcess.
- If the application requires elevated privilege, CreateProcess, through a call to NtCreateProcess, returns a specified error to ShellExecute.
- On receipt of the error ShellExecute calls across to the Application Information Service (AIS) to attempt the elevated launch.
- AIS then prompts the user for consent through the Consent User Interface.
- ShellExecute then reissues CreateProcess for the user with the user full token to launch the application on the client's (UAP) desktop.
- NtCreateProcess launches the application with the specified full token.
- NtCreateProcess prompts user for consent through the Consent User Interface.
- NtCreateProcess reissues CreateProcess for the user with the user full token to launch the application on the client's (UAP) desktop.
- NtCreateProcess launches the application with the specified full token.
Keep in mind that UAP compliance is all about least privilege. If your application runs properly under a nonadministrative account in Windows XP or Windows Server 2003, you won't run into any problems on Windows Vista.
To ensure that your application runs properly under Windows Vista, you should test your application as a USER.
- Identify and fix bugs to enable your UI to run as USER.
- If your UI does not require any administrator privileges to function, validate this by testing your UI as a USER and verify that all operations function correctly.
- If your UI only functions with administrator privileges, validate by testing your UI as a USER and verify that the UI requests elevation before launching.
For an application that provides different functions depending on whether the user is an Administrator or USER, there will be a way to allow for variable access to the application's administrative features.
Network Access Protection Framework: To ensure the health and security of a network, particularly one supporting roaming computing and the attachment of portable devices, Windows Vista provides the Network Access Protection (NAP) framework. NAP enables system administrators to define and enforce policies that require network clients to establish their trustworthiness and compatibility with the network before being given a specified access. Client systems are either given full access or placed in a restricted subsection of the network, where they have only limited access.
Mapping a network drive is easier than before
Developers should use API-level access to NAP and the Windows Filtering Platform (WFP) to reduce user and administrator security workloads by:
- Providing application-specific security settings supporting Firewall and NAT transversal.
- Allowing more detailed (down-to-packet-level) screening of data transmissions.
- Isolating and validating new tools and their configurations prior to fully installing and integrating them into a running system.
Network access client software and network access servers, which participate in the NAP, ensure that only healthy systems log on to the network. Unhealthy systems are put on a restricted VLAN for remediation so they can get on to the network.