21
X Window JianJing Cao (ID #98284)

X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

Embed Size (px)

Citation preview

Page 1: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

X Window

JianJing Cao

(ID #98284)

Page 2: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

Content

• Introduction

• X Window System

• Function

• Window Principle

• How X Window Works

• Security

Page 3: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

Introduction

• X window, a window system for UNIX was developed at M.I.T when graphics terminals came into existence

• The X Window system is device independent -- it can run on most common computer platforms. It includes workstations from companies such as Sun Microsystems Inc, and Silicon Graphics Inc.

Page 4: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

Introduction

• X window is a portable, network-transparent window system which runs on many different computers. It is frequently used in conjunction with the UNIX operating system

• X window is a client-server model

Page 5: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

X Window System

Page 6: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

X Window system

Page 7: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

Function

• X Window provides a consistent means of graphical user interaction for UNIX workstations.

• Motif (one of toolkit) uses X window provides an introduction to graphic user interface (GUI) programming base on Unix operating system.

Page 8: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

Function

• With X the programmer can write a single application in a single language and run this program on different machines with little or no modification. Moreover, applications can actually run programs on one computer and have the results displayed on another (or several) computer's terminal.

Page 9: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

X Window Principle

• All forms of displaying of information in X are bit-mapped

• X, like most other windowing systems, divides the screen into various parts that control input and output. Each part is called a window

• Not all applications need to consist of a single window.

Page 10: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

X Window Principle

• There is one special window, the background or root window. All other windows are children of the root .

Page 11: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

How X window Works

• It runs on a machine with a display, keyboard, and a mouse

• All a client program needs to do to use the X display is to open up a connection with the server and then send Protocol requests to it.

Page 12: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

How X window works

• There are 4 types of messages passing between the client and server;

Requests - the client can ask the server to draw something, or ask for information.

Replies - the server can reply.

Events - the server can supervise the client with something

Errors - the server can report an error

Page 13: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

Security

• Problem

• Solution

Page 14: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

Damage Possible By Attacker

destroy any (or all) of your windows open new windows on your screen view the contents of your screen

remotely log all keystrokes, including

passwords, typed while in X

Page 15: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

Damage Possible By Attacker

• generate spurious X events causing arbitrary instructions to be executed (this risk is particularly great if you use Emacs)

Page 16: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

Solution

• Host Authentication

• Token Authentication

Page 17: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

Host Authentication

• Using xhost(display,add,move)

Benfit: The xhost access control mechanism is certainly easy to use. A single program with a simple syntax is required

Drawbacks: 1.Many environments, where numerous users are

allowed access to a particular host .

2. NCD servers, SGI systems, and Mac X for the

Macintosh come with access control disable

by default.

Page 18: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

Token Authentication

• xauth Program: The xauth program is used for editing and displaying the user's magic cookie authorization information

• The X Display Manager: xdm, is a client which provides login screens for multiple X Servers

Page 19: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

• Benefits: Authorization is now done on a user-by-user basis, not a host-by-host basis.

• Drawbacks: The xdm and xauth programs are time consuming for both the administrator and the end user to use and maintain. They require a good understanding of the X client-server model on the part of the user.

Token Authentication

Page 20: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security

Reference

• http://search.yahoo.com/bin/search?p=X+window

• Structure Computer Organization 4th Edition Andrew S. Tanenbaum

Page 21: X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security