Managing a user proxy configuration in a daemon that frequently loads and unloads
AssigneeRed Hat, Inc.
InventorRichard Hughes
Life of this patent
Estimating the term…
Abstract
A user proxy setting is managed by a computer system that frequently performs package updates. A session starts when a user logs onto the computer system. The session registers the proxy setting of the user with a daemon that quits after a period of inactivity and restarts upon request. The daemon stores the proxy setting in a database using a user identifier (UID) and a session identifier as a key. The daemon then performs package updates multiple times during the session via a network, each time using the proxy setting stored in the database.
Claims12
A method comprising:
- starting, by a processing device, a session when a user logs onto a computer system comprising the processing device, wherein multiple package updates occur during the session, and wherein the package updates comprise package search, package download, and package removal;
- querying an authorizing daemon to determine whether the user is authorized to perform a first package update in view of a rule that indicates whether the user is authorized to perform the first package update;
- registering a user proxy setting with a daemon module that is executed by the processing device, wherein the daemon module stores the proxy setting in a database, and wherein the user proxy setting comprises a privilege level of the user;
- determining the privilege level of the user in view of the user proxy setting;
- determining that the user is authorized to perform the first package update in view of the privilege level of the user;
- in response to determining that the user is authorized to perform the first package update:
- determining that a period of inactivity of the user within a user interface when the user exits from a text mode or graphical tool of a front-end for management of the package updates exceeds a threshold;
- and
- in response to determining that the period of inactivity exceeds the threshold:
- quitting the daemon module;
- and
- relinquishing a memory space that was assigned to the daemon module when the daemon module quits, wherein relinquishing the memory space allows the computer system to reuse the memory space;
- detecting a request for a second package update from the user;
- and
- restarting the daemon module in view of detecting the request for the second package update from the user, wherein the daemon module retrieves the proxy setting from the database to determine whether the user is authorized to perform the second package update in response to restarting, and wherein the daemon module is able to quit and restart multiple times during the session via a network each time using the retrieved user proxy setting.
A computer system comprising:
- a memory to store a database;
- and
- a processing device to communicate with the database to:
- start a session when a user logs onto the computer system, wherein multiple package updates occur during the session, and wherein the package updates comprise package search, package download, and package removal;
- query an authorizing daemon to determine whether the user is authorized to perform a first package update in view of a rule that indicates whether the user is authorized to perform the first package update;
- register a user proxy setting with a daemon module that is executed by the processing device, wherein the daemon module stores the proxy setting in a database, and wherein the user proxy setting comprises a privilege level of the user;
- determine the privilege level of the user in view of the user proxy setting;
- determine that the user is authorized to perform the first package update in view of the privilege level of the user;
- in response to the determination that the user is authorized to perform the first package update:
- determine that a period of inactivity of the user within a user interface when the user exits from a text mode or graphical tool of a front-end for management of the package updates exceeds a threshold;
- and
- in response to the determination that the period of inactivity exceeds the threshold:
- quit the daemon module;
- and
- relinquish a memory space that was assigned to the daemon module when the daemon module quits, wherein the relinquishment of the memory space allows the computer system to reuse the memory space;
- detect a request for a second package update from the user;
- and
- restart the daemon module in view of the detection of the request for the second package update from the user, wherein the daemon module retrieves the proxy setting from the database to determine whether the user is authorized to perform the second package update in response to the restart, and wherein the daemon module is able to quit and restart multiple times during the session via a network, each time using the retrieved user proxy setting.
A non-transitory computer readable storage medium including instructions that, when executed by a processing device, cause the processing system to:
- start, by the processing device, a session when a user logs onto a computer system comprising the processing device, wherein multiple package updates occur during the session, and wherein the package updates comprise package search, package download, and package removal;
- query an authorizing daemon to determine whether the user is authorized to perform a first package update in view of a rule that indicates whether the user is authorized to perform the first package update;
- register a user proxy setting with a daemon module that is executed by the processing device, wherein the daemon module stores the proxy setting in a database, and wherein the user proxy setting comprises a privilege level of the user;
- determine the privilege level of the user in view of the user proxy setting;
- determine that the user is authorized to perform the first package update in view of the privilege level of the user;
- in response to the determination that the user is authorized to perform the first package update:
- determine that a period of inactivity of the user within a user interface when the user exits from a text mode or graphical tool of a front-end for management of the package updates exceeds a threshold;
- and
- in response to the determination that the period of inactivity exceeds the threshold:
- quit the daemon module;
- and
- relinquish a memory space that was assigned to the daemon module when the daemon module quits, wherein the relinquishment of the memory space allows the computer system to reuse the memory space;
- detect a request for a second package update from the user;
- and
- restart the daemon module in view of the detection of the request for the second package update from the user, wherein the daemon module retrieves the proxy setting from the database to determine whether the user is authorized to perform the second package update in response to the restart, and wherein the daemon module is able to quit and restart multiple times during the session via a network, each time using the retrieved user proxy setting.
Dependencies are inferred from the claim text.