1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
|
commit bea922dbab5fb65997c62a98585a35741cbb1a5a
Author: Lennart Poettering <lennart@poettering.net>
Date: Wed Nov 17 02:03:34 2010 +0100
update NEWS
NEWS | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
commit 72bc55ded76c567adee241094ba3147c72706f79
Author: Lennart Poettering <lennart@poettering.net>
Date: Wed Nov 17 01:50:46 2010 +0100
Revert "linux: Use VT_WAITEVENT if available to avoid spawn too
many threads"
This reverts commit 2782cc8d4950effbc4407455e72bd4750cef6e11.
VT_WAITEVENT is racy unfortunately, since events that happen
between the
time we woke up from a VT_WAITEVENT and we go into the next
VT_WAITEVENT
are lost completely.
NEWS | 1 -
src/ck-sysdeps-unix.c | 44 --------------------------------------------
src/ck-sysdeps.h | 2 --
src/ck-vt-monitor.c | 48
++++++++----------------------------------------
4 files changed, 8 insertions(+), 87 deletions(-)
commit d36415dcc3cd26a7d1def2f12b4d1c59e13d704e
Author: Lennart Poettering <lennart@poettering.net>
Date: Wed Nov 17 01:49:37 2010 +0100
Revert "linux: Check for VT_WAITEVENT ioctl during runtime"
This reverts commit 24dc214f55e7c7c17d888d0ccf94cd3625767462.
VT_WAITEVENT is racy unfortunately, since events that happen
between the
time we woke up from a VT_WAITEVENT and we go into the next
VT_WAITEVENT
are lost completely.
src/ck-vt-monitor.c | 58
++++++++-------------------------------------------
1 files changed, 9 insertions(+), 49 deletions(-)
commit e74c174728bfa582d8187392bdbc11fe940c2df3
Author: Lennart Poettering <lennart@poettering.net>
Date: Wed Nov 17 00:45:40 2010 +0100
systemd: simplify unit files a little
data/console-kit-log-system-restart.service.in | 6 +++---
data/console-kit-log-system-start.service.in | 6 +++---
data/console-kit-log-system-stop.service.in | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
commit 8564260aa0a2ab18f908079f886f7689844bfad5
Author: Lennart Poettering <lennart@poettering.net>
Date: Wed Nov 17 00:45:16 2010 +0100
systemd: log shutdown when doing kexec reboot
data/Makefile.am | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
commit 25b5d47b961542ceca5f589cc69041b2d941c054
Author: Michael Biebl <biebl@debian.org>
Date: Sun Sep 19 21:17:26 2010 +0200
dbus: bump dependency on dbus-glib to 0.82
dbus-glib >= 0.82 requires dbus >= 1.1 so we can safely remove
DBUS_API_SUBJECT_TO_CHANGE.
configure.ac | 2 +-
src/ck-manager.c | 1 -
src/ck-seat.c | 1 -
src/ck-session-leader.c | 1 -
src/ck-session.c | 1 -
src/ck-vt-monitor.c | 1 -
src/main.c | 1 -
tools/list-sessions.c | 1 -
8 files changed, 1 insertions(+), 8 deletions(-)
commit 24dc214f55e7c7c17d888d0ccf94cd3625767462
Author: Michael Biebl <biebl@debian.org>
Date: Mon Sep 20 00:45:16 2010 +0200
linux: Check for VT_WAITEVENT ioctl during runtime
Since 2782cc8d4950effbc4407455e72bd4750cef6e11 ConsoleKit fails, if it
has been compiled on a linux kernel >= 2.6.32 but is run with an older
kernel. Check for VT_WAITEVENT ioctl during runtime and fallback
to the
old behaviour of creating a thread for every possible vt.
src/ck-vt-monitor.c | 58
+++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 49 insertions(+), 9 deletions(-)
commit 2d16bc565247b8d8653e7eb4a7a6b0d940142bb6
Author: Michael Biebl <biebl@debian.org>
Date: Mon Sep 6 22:52:25 2010 +0200
build-sys: Bump GLIB_REQUIRED_VERSION to 2.14 for GRegex
https://bugs.freedesktop.org/show_bug.cgi?id=30041
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 95ba1f7d70251830cf1dc0e0516ea0a4715272df
Author: Luca Favatella <slackydeb@gmail.com>
Date: Mon Sep 20 00:13:33 2010 +0200
build-sys: extend configure check for kfreebsd
https://bugs.freedesktop.org/show_bug.cgi?id=30051
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511270
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit c163d26a97f4f69422ec4ea0cfe4c7e211d824c1
Author: Lennart Poettering <lennart@poettering.net>
Date: Tue Sep 14 01:08:06 2010 +0200
systemd: make sure the file system is writable before we write
log data
data/console-kit-log-system-restart.service.in | 3 ++-
data/console-kit-log-system-start.service.in | 3 ++-
data/console-kit-log-system-stop.service.in | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
commit 146e68f5c39653ba5878c6f32b3700d7fbabf777
Author: Lennart Poettering <lennart@poettering.net>
Date: Tue Sep 7 02:58:59 2010 +0200
post release version bump
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 55803876769bd0903cb0efda597bfd5a657adb86
Author: Lennart Poettering <lennart@poettering.net>
Date: Mon Sep 6 16:34:13 2010 +0200
systemd: keep around console-kit-log-system-start.service after it
was run to avoid that it can be triggered twice
data/console-kit-log-system-start.service.in | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit 2782cc8d4950effbc4407455e72bd4750cef6e11
Author: Kan-Ru Chen <koster@debian.org>
Date: Thu Aug 19 13:45:03 2010 +0800
linux: Use VT_WAITEVENT if available to avoid spawn too many threads
Starting from linux kernel 2.6.32 there is a new ioctl VT_WAITEVENT
which can monitor vt switches and return new vt number.
https://bugs.freedesktop.org/show_bug.cgi?id=17720
NEWS | 1 +
src/ck-sysdeps-unix.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
src/ck-sysdeps.h | 2 ++
src/ck-vt-monitor.c | 48
++++++++++++++++++++++++++++++++++++++++--------
4 files changed, 87 insertions(+), 8 deletions(-)
commit 98e36b216189966f21259bb33f1a25290a9ab23e
Author: Lennart Poettering <lennart@poettering.net>
Date: Sun Sep 5 23:28:45 2010 +0200
NEWS: update for 0.4.2
NEWS | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
commit afedbb80497e0a26f2026336943b1e37a8e696af
Author: Lennart Poettering <lennart@poettering.net>
Date: Fri Sep 3 19:24:18 2010 +0200
systemd: install unit files for CK logging calls
This follows the basic scheme of the Upstart scripts we already ship
data/.gitignore | 3 ++
data/Makefile.am | 38
++++++++++++++++++++++-
data/console-kit-log-system-restart.service.in | 9 +++++
data/console-kit-log-system-start.service.in | 9 +++++
data/console-kit-log-system-stop.service.in | 9 +++++
5 files changed, 66 insertions(+), 2 deletions(-)
commit 5a81bb666df3d8469d282e63d452ac2dea96b313
Author: Lennart Poettering <lennart@poettering.net>
Date: Wed Jul 21 16:55:44 2010 +0200
systemd: install systemd unit files
Makefile.am | 3 +++
configure.ac | 9 +++++++++
data/.gitignore | 1 +
data/Makefile.am | 12 +++++++++++-
data/console-kit-daemon.service.in | 15 +++++++++++++++
data/org.freedesktop.ConsoleKit.service.in | 1 +
6 files changed, 40 insertions(+), 1 deletions(-)
commit 30f0968b9a7f544d1afc8908888dc403be6112b8
Author: William Jon McCann <jmccann@redhat.com>
Date: Tue Aug 3 15:26:58 2010 -0400
Only load seat files with a .seat extension
src/ck-manager.c | 10 ++++++----
src/ck-seat.c | 2 ++
2 files changed, 8 insertions(+), 4 deletions(-)
commit 7b9212fa6aff55420c58f2cacd0a941762920337
Author: Anders Kaseorg <andersk@mit.edu>
Date: Tue Aug 3 15:07:39 2010 -0400
Fix a few memory leaks
https://bugs.freedesktop.org/show_bug.cgi?id=26227
src/ck-manager.c | 7 +++++++
src/ck-session.c | 3 ++-
2 files changed, 9 insertions(+), 1 deletions(-)
commit 4f88228f31a63c026c424a92827f26ad7535275c
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Jun 3 20:02:35 2010 -0400
Only set sessions to be is-local=true if set by a trusted party
https://bugs.freedesktop.org/show_bug.cgi?id=28377
src/ck-manager.c | 166
++++++++++++++++++++++++++++++++++++++-
tools/ck-collect-session-info.c | 10 +--
2 files changed, 165 insertions(+), 11 deletions(-)
commit c9f2292339540d4b9d8940bcef16b7485480c8d9
Author: William Jon McCann <jmccann@redhat.com>
Date: Fri Jun 11 15:53:22 2010 -0400
Add a --since option to show entries in a time window
Doesn't load any history files it doesn't need to which should
help performance on systems with long histories.
https://bugs.freedesktop.org/show_bug.cgi?id=25660
tools/ck-history.c | 96
++++++++++++++++++++++++++++++++++++++++------------
1 files changed, 74 insertions(+), 22 deletions(-)
commit b8a961f91105df661957f6b86922f744bac8b91c
Author: Halton Huo <halton.huo@sun.com>
Date: Wed May 19 12:46:25 2010 +0800
Enhancement CanActivateSessions for OpenSolaris.
VT switching is always enabled on Linux, but for OpenSolaris VT
switching
can be truned of by 'svcadm disable vtdaemon'. So we should also check
whether the service vtdaemon is online on OpenSolaris.
https://bugs.freedesktop.org/show_bug.cgi?id=26055
src/Makefile.am | 1 +
src/ck-sysdeps-freebsd.c | 6 ++++++
src/ck-sysdeps-linux.c | 6 ++++++
src/ck-sysdeps-solaris.c | 18 ++++++++++++++++++
src/ck-sysdeps.h | 1 +
5 files changed, 32 insertions(+), 0 deletions(-)
commit 9f7ded3fb41f7f656895373463e5aa3ca04f86bc
Author: Halton Huo <halton.huo@sun.com>
Date: Thu May 20 10:48:09 2010 +0800
Revert "Enhancement CanActivateSessions for OpenSolaris."
This reverts commit b2e65a0ab7f4c417c85433e3e9bf97befbe6da3b.
configure.ac | 13 -------------
src/Makefile.am | 1 -
src/ck-seat.c | 26 +-------------------------
3 files changed, 1 insertions(+), 39 deletions(-)
commit b2e65a0ab7f4c417c85433e3e9bf97befbe6da3b
Author: Halton Huo <halton.huo@sun.com>
Date: Fri Jan 15 14:06:32 2010 +0800
Enhancement CanActivateSessions for OpenSolaris.
VT switching is always enabled on Linux, but for OpenSolaris VT
switching
can be truned of by 'svcadm disable vtdaemon'. So we should also check
whether the service vtdaemon is online on OpenSolaris.
https://bugs.freedesktop.org/show_bug.cgi?id=26055
configure.ac | 13 +++++++++++++
src/Makefile.am | 1 +
src/ck-seat.c | 26 +++++++++++++++++++++++++-
3 files changed, 39 insertions(+), 1 deletions(-)
commit e7f3952632f077ff647e303bd08950085c293297
Author: Frederic Crozat <fcrozat@mandriva.com>
Date: Fri Jan 29 06:43:29 2010 -0500
format not a string literal and no format arguments
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=24152
src/ck-log-event.c | 16 ++++++++--------
src/main.c | 2 +-
2 files changed, 9 insertions(+), 9 deletions(-)
commit 42315147af68f5e64f86d794061e8c03e2b8dc01
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Jan 28 18:24:49 2010 -0500
Use the correct property ID for idle-hint
https://bugs.freedesktop.org/show_bug.cgi?id=25703
src/ck-session.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit f01e054a419d7aaf10c1da321bfbff554ffc3c54
Author: Michael Biebl <mbiebl@gmail.com>
Date: Thu Jan 28 18:11:54 2010 -0500
Don't segfault if the seats file is invalid.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561106
src/ck-manager.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
commit 2418840248f07025ad0edc96ed17e03ce5e47f3e
Author: Ray Strode <rstrode@redhat.com>
Date: Mon Dec 21 11:14:54 2009 -0500
Don't take bus name until ready
Previously, we would take a bus name right away, but
not register the manager object until later. This
causes a race when being activated by a method call
on the manager object, where ConsoleKit gets started
but the method call fails.
https://bugs.freedesktop.org/show_bug.cgi?id=25744
src/main.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
commit fc2870a65f6b3ed3b71bcac69c5faf3a9c759c64
Author: Matthias Clasen <mclasen@redhat.com>
Date: Mon Dec 21 11:13:23 2009 -0500
Don't daemonize when activated
It confuses some versions of D-Bus and isn't needed
(or wanted it).
http://bugs.freedesktop.org/show_bug.cgi?id=25642
data/org.freedesktop.ConsoleKit.service.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 48b4b2d1174db98ee87ea4e71f4a21221043ca3f
Author: Halton Huo <halton.huo@sun.com>
Date: Tue Nov 10 14:38:29 2009 +0800
Implement CanRestart and CanStop interfaces on Solaris.
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=24992
src/ck-manager.c | 31 ++++++++++++++++++++++---------
1 files changed, 22 insertions(+), 9 deletions(-)
commit 42a909bbc8ede5c27e3d40606a98ab1251511dfc
Author: Halton Huo <halton.huo@sun.com>
Date: Tue Nov 3 11:42:07 2009 +0800
Identify major device number for vt rather than hard code as 15.
Fixes bug http://defect.opensolaris.org/bz/show_bug.cgi?id=12322
This is solaris only bug, won't affect other platform.
src/ck-sysdeps-solaris.c | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
commit b00450b3f9284d997e2e25fd470e7df7336f03ec
Author: Halton Huo <halton.huo@sun.com>
Date: Fri Oct 16 11:10:37 2009 +0800
Fix bug console-kit-daemon exit when receiving SIGPOLL on Solaris.
Refer to bug http://defect.opensolaris.org/bz/show_bug.cgi?id=11612
src/ck-vt-monitor.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
commit 909bb5d08a50384ae2a521b80768c283363dbb86
Author: Halton Huo <halton.huo@sun.com>
Date: Fri Oct 16 11:09:58 2009 +0800
Correct tty return value after VT support is integrated in Solaris.
src/ck-sysdeps-solaris.c | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
commit 4661908c6dc7964c87f698edc7bbeb30ab37c986
Author: Ray Strode <rstrode@redhat.com>
Date: Fri Sep 25 15:33:23 2009 -0400
Turn on silent build by default
It's all the rage these days and makes seeing warnings much
easier.
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 3719fa53557d39d9b8a024d1cc7542ab6f9981d6
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Sep 24 02:34:31 2009 -0400
fix style
src/ck-seat.c | 21 ++++++++++++++-------
1 files changed, 14 insertions(+), 7 deletions(-)
commit f40de949f72bb0da2c64776fdda039a855ea0374
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Sep 24 02:31:49 2009 -0400
post release version bump
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 9ddc8aa9549425ead3bfeb2dc22f0c07ddca7718
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Sep 24 02:29:46 2009 -0400
Another? So soon?
NEWS | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
commit 6bc4a3bf403acb762dfaa0cf4eb8288b73e6aa2d
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Sep 24 02:15:59 2009 -0400
Fix a crasher
src/ck-seat.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
commit d9f4838baff87ad39f1726200e1b0812b7813808
Author: Matthias Clasen <mclasen@redhat.com>
Date: Thu Sep 24 01:11:16 2009 -0400
fix a small memory leak
src/ck-manager.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
commit 76fba3d10411fc62a89d636ec2592cdf8015fbb2
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Sep 24 01:06:07 2009 -0400
update email address
doc/dbus/ConsoleKit.xml.in | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
commit 2f5a8a128ac423d444882bbed5d186bc7e0d3188
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Sep 24 00:47:04 2009 -0400
post release version bump
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit bf1adae39b41009a54b91389b0d625fd81fdb39c
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Sep 24 00:45:46 2009 -0400
Update for release
.gitignore | 3 ++-
NEWS | 18 +++++++++++++++++-
doc/dbus/.gitignore | 1 +
3 files changed, 20 insertions(+), 2 deletions(-)
commit ca74581668475c69fba6b5ccc1be453c8cdde8e9
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Sep 24 00:27:15 2009 -0400
bump version before new release
AUTHORS | 2 +-
configure.ac | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
commit ee7f189f604d2a976ab0861e11e902755c2ea6ae
Author: Halton Huo <halton.huo@sun.com>
Date: Mon Sep 14 20:26:36 2009 -0400
close file descriptors before exit func
This bug is copied from
http://defect.opensolaris.org/bz/show_bug.cgi?id=10291.
The patch is attached, Please review it.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=22986
src/ck-sysdeps-solaris.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit 528ff2ceb4efd5db89e5e677517c6c487deb196a
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Sep 14 20:14:41 2009 -0400
log the kernel release and boot arguments at start time
Someone needs to add support for non-Linux platforms.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=23948
src/ck-log-event.c | 42
+++++++++++++++++++++++++++++++++++++++++-
src/ck-log-event.h | 3 ++-
tools/ck-history.c | 5 ++---
tools/ck-log-system-start.c | 32 ++++++++++++++++++++++++++++++++
4 files changed, 77 insertions(+), 5 deletions(-)
commit 85cfd65a204477e22b258b01d29ab78503074290
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Sep 14 18:18:41 2009 -0400
show display in host field if the host isn't set
This is consistent with how we write the wtmp records in GDM.
https://bugs.freedesktop.org/show_bug.cgi?id=23944
tools/ck-history.c | 22 +++++++++++++++-------
1 files changed, 15 insertions(+), 7 deletions(-)
commit 725e76c91823ee01729890ac1fe71a97754512e4
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Sep 14 17:12:07 2009 -0400
print the uptime for the reboot items in the report
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=23279
tools/ck-history.c | 41 +++++++++++++++++++++++++++++++++++++++--
1 files changed, 39 insertions(+), 2 deletions(-)
commit 3afb5dc9c0a8ee8e1259fea6bd4b6d5fdede2d5f
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Sep 14 16:08:16 2009 -0400
fix logic for finding session remove events
The logic is supposed to find any type of removal event. This can
be one of CK_LOG_EVENT_SEAT_SESSION_REMOVED,
CK_LOG_EVENT_SYSTEM_START,
CK_LOG_EVENT_SYSTEM_STOP, or CK_LOG_EVENT_SYSTEM_RESTART.
This is used to determine if the removal was normal or
RECORD_STATUS_CRASH,
or RECORD_STATUS_DOWN. And indicated in the report log as something
like:
"Thu Sep 3 21:28 - down (20:20)"
tools/ck-history.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
commit 81435b3d10d4b124c0a6b4649b4cf74378a26323
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Sep 14 15:54:33 2009 -0400
fix a few small leaks
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=23939
src/ck-seat.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
commit b4f893eb294883909759fc9fd825eade1a9f308c
Author: Lennart Poettering <lennart@poettering.net>
Date: Tue Aug 11 04:02:33 2009 +0200
Add seat.d/ callout directory and guarantee we dump the database
before callout invocation
This adds a callout directory called seat.d/ that follows the basic
session.d/ semantics but works on seats instead of sessions.
As replacement for the old session.d/ 'session_active_changed'
semantics seat.d/ knows 'seat_active_session_changed'. Which combines
the two callouts necessary for session_active_changed into one. This
has
various advantages: it's not as racy, allows the suppressing of ACL
permission changes when switching between sessions of the same user,
reduces the amount of disk IO and finally is less ugly.
This patch also moves all callout invocations into the CkManager.
This
has the advantage that we can guarantee to have fully dumped the CK
database before the callout.
In summary, the session.d/ directory will now get two types of callout
invocations:
session_added
session_removed
In contrast, seat.d/ gets three types:
seat_added
seat_removed
seat_active_session_changed
The 'seat_active_session_changed' callout type gets two sets of
environment variables describing the old resp. the new session that is
active. Either set can be left out if no session was active before, or
no session will be active after the switch. This is similar to
the logic
behind D-Bus' NameOwnerChanged.
This patch duplicates CkSeat's 'session-removed' signal into
'session-removed-full' (and friends). Reason for that is that
the signal
forwarded via D-Bus needs the session id as string while the callout
code needs the session itself as object. Since at the time of
invocation
the CkSeat is no longer in the seats hashtable it is hence necessary
to
pass the object in as argument to the signal handlers, which
makes this
duplification necessary to not confuse dbus-glib. For a similar reason
'active-session-changed' is duplicated as well.
src/Makefile.am | 2 +
src/ck-manager.c | 56 +++++++++++++-----
src/ck-marshal.list | 1 +
src/ck-seat.c | 161
+++++++++++++++++++++++++++++++++++++++++++++++---
src/ck-seat.h | 5 ++
5 files changed, 200 insertions(+), 25 deletions(-)
commit 76f0578e7a497e569438316703df254f84b548a0
Author: Lennart Poettering <lennart@poettering.net>
Date: Tue Aug 11 03:57:27 2009 +0200
get rid of session.d's session_active_changed callout
The 'session_active_changed' callout is an invitaton to racy misuses
since it splits up the session switches into two events. This
patch gets
rid of it.
At this point there are two known users of the session.d/ callouts:
- Suse/Ubuntu ship a script for emulating pam_atconsole style
/var/run/console management for supporting D-Bus' at_console
feature
properly. Both Martin Pitt and Kay Sievers however are happy with
having this feature go away. In addition I prepared a patch for
D-Bus which makes the need for these scripts go away
entirely. That
patch is currently awaiting review.
- udev's udev-acl tool currently uses this. However this doesn't
work
correctly anyway since it relies on that the CK database is
correctly
dumped before the tool is invoked, which CK does not handle
properly
at this time. In fact fixing this problem is the main reason why I
came up with this patch series. Kay is also very interested in
seeing the 'session_active_changed' logic go away.
A later commit introduces a replacement functionality that is
less racy.
Please note that this patch does not drop session.d/ in its entirety.
Only the 'session_active_changed' type callout is removed. Scripts
that
only rely on 'session_added'/'session_removed' will continue to work
fine, and will continue to be supported.
NEWS | 8 +++++++-
src/ck-session.c | 2 --
2 files changed, 7 insertions(+), 3 deletions(-)
commit 8535db29009c48a37fc2559ca0fcc5b366e1e122
Author: Lennart Poettering <lennart@poettering.net>
Date: Mon Jul 27 18:16:15 2009 +0200
database: write the console database to disk before signalling
via dbus
We simply change the order how the signal handlers for D-Bus and the
database dumping are registered. According to the gobject docs it is
guaranteed that the signal handlers are run in the same order as they
are registered, so this should be safe and have the desired effect.
src/ck-manager.c | 29 +++++++++++++++++++----------
src/ck-seat.c | 19 ++-----------------
src/ck-seat.h | 2 ++
3 files changed, 23 insertions(+), 27 deletions(-)
commit 17fe9ecafedffde111fd0ac95d5688bf5a330972
Author: Lennart Poettering <lennart@poettering.net>
Date: Tue Aug 11 03:58:45 2009 +0200
Enforce that the env array has the right size
Hit an assert if folks add env vars but don't increase the env
var array
size.
src/ck-session.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
commit 90ddcd8249e81341ec05fdb508b6768684ce178b
Author: Lennart Poettering <lennart@poettering.net>
Date: Tue Aug 11 04:01:09 2009 +0200
when printing size_t use %z format string
src/ck-seat.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 242971667b66fea86d4cfb5a4d0a396e5a7b5e8b
Author: Lennart Poettering <lennart@poettering.net>
Date: Tue Aug 11 03:54:57 2009 +0200
make CK database world readable
The CK database shall be readable by the D-Bus daemon which runs under
its own user id hence make sure it is readable for non-root processes.
To make sure this leaks no information this drops the session cookie
from the database.
src/ck-manager.c | 2 +-
src/ck-session-leader.c | 1 -
src/ck-session.c | 4 ----
3 files changed, 1 insertions(+), 6 deletions(-)
commit 6d4959b9a573c55fe56bbaf2394f492384f19c67
Author: Lennart Poettering <lennart@poettering.net>
Date: Tue Aug 11 03:56:48 2009 +0200
get rid of ck_seat_set_active_session() prototype since no such
function exists
src/ck-seat.h | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
commit d4c986776d0626fc5e1d6d67232a312f9ec6ad75
Author: Lennart Poettering <lennart@poettering.net>
Date: Tue Aug 11 03:53:40 2009 +0200
Move ck_session_run_programs() from ck-run-programs.h to ck-session.h
It's a method of CkSession hence it belongs in ck-session.h
src/ck-run-programs.h | 3 ---
src/ck-session.h | 3 +++
2 files changed, 3 insertions(+), 3 deletions(-)
commit ced836b356bd3235c69754e82fe8510ee377d58c
Author: Ray Strode <rstrode@redhat.com>
Date: Wed Jul 22 16:54:01 2009 -0400
post release version bump
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit a727d971f3dffc98bae043b69a95e02d3ab3eb88
Author: Ray Strode <rstrode@redhat.com>
Date: Wed Jul 22 15:13:40 2009 -0400
Fix example upstart system start script
It was trying to write the log message way too early,
before the root filesystem was mounted.
NEWS | 2 +-
data/ck-log-system-start | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
commit 0f5a014b1e722998e85a3e8482a1cc7654066b8f
Author: Ray Strode <rstrode@redhat.com>
Date: Tue Jul 21 11:00:52 2009 -0400
Update NEWS for 0.3.1 release
NEWS | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
commit 671d3100d48af77eb03b79c73d20e7a4611339df
Author: Ray Strode <rstrode@redhat.com>
Date: Tue Jul 21 10:38:26 2009 -0400
Reference entities relative to srcdir not cwd
The docs were failing to build when srcdir != builddir
because ConsoleKit.xml was ending up in builddir and
all its entities are in srcdir.
This commit makes ConsoleKit.xml load the entities from
srcdir, which fixes make distcheck.
doc/dbus/ConsoleKit.xml.in | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
commit bf40cd1b17e0bb55c606301f7d8ed65ae6791e54
Author: Ray Strode <rstrode@redhat.com>
Date: Tue Jul 21 10:07:49 2009 -0400
Call "git log" instead of "git-log" in Makefile
git-log (with a hyphen) is an obsolete way to call
git log.
Makefile.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 23ab6a2ef30fb6fb56f33ac44ecda5887d2b1f94
Author: Martin Pitt <martin.pitt@ubuntu.com>
Date: Mon Jul 20 17:09:36 2009 -0400
Add CanStop/Restart to D-Bus security policy
This change is necessarily following commit:
e0d9cc359b3099307067107b59ec691418e280b8
data/ConsoleKit.conf | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
commit 89b9256ad86ddc2a9fd12d3359bc431df45c6b25
Author: Matthias Clasen <mclasen@redhat.com>
Date: Mon Jul 20 17:08:23 2009 -0400
Port to PolicyKit 1.0 apis
configure.ac | 5 +-
data/Makefile.am | 2 +-
data/org.freedesktop.consolekit.policy | 4 +-
src/ck-manager.c | 673
+++++++++-------------------
src/ck-manager.h | 5 +
src/org.freedesktop.ConsoleKit.Manager.xml | 10 +
6 files changed, 226 insertions(+), 473 deletions(-)
commit 282c47eb102f839cbf3bee646ba2841362284760
Author: Ray Strode <rstrode@redhat.com>
Date: Mon Jul 20 16:37:45 2009 -0400
Get VT from X display if no controlling tty
In some cases a controlling tty won't be able available to
peek at to find the VT of the X display. In those cases,
we fall back to looking at the XFree86_VT property.
We can do this because we know the display is a local display
since we've already gotten peer credentials from its socket.
tools/ck-get-x11-display-device.c | 72
+++++++++++++++++++++++++++++++++++++
1 files changed, 72 insertions(+), 0 deletions(-)
commit bcc18427eec07139c9d907ac3995f2c157a7c715
Author: Halton Huo <halton.huo@sun.com>
Date: Mon Jul 20 16:29:46 2009 -0400
Fix connector build on Solaris
Solaris now builds with flags to give getpwnam_r
more standard semantics.
bug 22361
pam-ck-connector/pam-ck-connector.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
commit bb5c86f61775039dca779959eb5822cb1d453bbd
Author: Vincent Untz <vuntz@gnome.org>
Date: Mon Jul 20 16:22:43 2009 -0400
Allow GetSessions to get called
The manager interface GetSessions function was
disallowed by the dbus security policy, despite only
exporting information that's available in other ways.
This commit opens it up.
See http://bugs.freedesktop.org/show_bug.cgi?id=20471
data/ConsoleKit.conf | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
commit 0f5390165fd68322d077e13d828af8f32fc09327
Author: Matthias Clasen <mclasen@redhat.com>
Date: Thu Jul 16 17:19:30 2009 -0400
avoid a (harmless) warning message
https://bugs.freedesktop.org/show_bug.cgi?id=21310
src/ck-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit cbfd9578d73f93e47b282bdf4e298067c4a9bf79
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Jul 16 17:15:14 2009 -0400
fix a bunch of xml validation errors
https://bugs.freedesktop.org/show_bug.cgi?id=20232
configure.ac | 3 +
doc/dbus/Makefile.am | 5 ++-
doc/dbus/ck-design.xml | 58 +++++++++++-----------
doc/dbus/spec-to-docbook.xsl | 72
++++++++++++++++------------
src/org.freedesktop.ConsoleKit.Manager.xml | 2 +-
src/org.freedesktop.ConsoleKit.Seat.xml | 5 +-
6 files changed, 82 insertions(+), 63 deletions(-)
commit 25145f35ab527a2219604e1710eb65e2178f6978
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Feb 12 14:59:15 2009 -0500
fix parsing log entries with no body
src/ck-log-event.c | 25 +++++++++++++++++--------
1 files changed, 17 insertions(+), 8 deletions(-)
commit b550333228b73bb3ed4a55ec74baade1bdded0ff
Author: Daniel Macks <dmacks@netspace.org>
Date: Wed Feb 11 21:56:55 2009 -0500
clearer diagnostic if platform back-end isn't implemented
Error if no backend for target host
configure.ac | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
commit 87703597e24ba94c400ac8878a6835d86571da91
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Feb 11 21:51:41 2009 -0500
parse gecos field to get real name
tools/list-sessions.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
commit 739b39203166eda0174672541a06ceeb182b6ed3
Author: James Westby <jw+debian@jameswestby.net>
Date: Wed Feb 11 21:39:46 2009 -0500
don't leak dbus proxy
src/ck-session.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
commit fef7d6f777b017878ba225395fe4199af5f1c581
Author: Halton Huo <halton.huo@sun.com>
Date: Wed Feb 11 20:39:18 2009 -0500
fix building with Solaris PAM
This patch is a little different with Brian's. Let's me explain the
whole patch
one by one.
1. pam-ck-connector/Makefile.am (same with Brian's)
Solaris does not have libpam_misc, so only build test_pam under
linux
2. +#include <limits.h>
This is to get macro PATH_MAX from system. I think it is better
than
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
On ubuntu, PATH_MAX=4096, on Solaris, PATH_MAX=1024
3. +#include <security/pam_appl.h>
This is to include declaration of pam_handle_t, to resolve
error like:
"/usr/include/security/pam_modules.h", line 38: syntax error before
or at: *
"/usr/include/security/pam_modules.h", line 45: syntax error before
or at: *
4.-#include <security/_pam_macros.h>
Solaris does not have this file, I remove it, no more error,
seems no use
here.
5. +#ifndef PAM_EXTERN ... part
Solaris PAM_EXTERN marco in pam_modules.h, while Ubuntu has,
I just copy the
logic from Ubuntu.
6. getpwnam_r part (same with Brian's)
getpwnam_r() have difference behavior between Solaris and Ubuntu.
https://bugs.freedesktop.org/show_bug.cgi?id=18173
pam-ck-connector/Makefile.am | 2 ++
pam-ck-connector/pam-ck-connector.c | 18 +++++++++++++++++-
2 files changed, 19 insertions(+), 1 deletions(-)
commit da3a3fe00ad4c4e750e467db58d383ebf4da978f
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Feb 11 20:30:50 2009 -0500
fix zero-sized struct/union
https://bugs.freedesktop.org/show_bug.cgi?id=18149
src/ck-log-event.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
commit 2ca61880db1da2b15fe83d0fe94b95245ace77b0
Author: James Westby <jw+debian@jameswestby.net>
Date: Wed Feb 11 20:18:24 2009 -0500
serialize removals, and avoid using freed data caused by removals
I changed the code to also loop through watch->notifies when
removing the watch due to inotify, and NULL each notify->watch
reference, the code then checks this before trying to delete
the watch itself if asked to remove the notify.
In order to prevent other race conditions in this area I also
made the inotify code not pass a watch to emit_events_in_idle,
as the watch may get freed in the meantime. It instead passes
the wd and the emit loop looks up the watch, discarding the
event if the watch has been removed.
I did however leave in the code that checks for a removed watch
before doing anything with inotify, as I hoped that this would
just optimise this case.
src/ck-file-monitor-inotify.c | 126
++++++++++++++++++++++++++++++----------
1 files changed, 94 insertions(+), 32 deletions(-)
commit 1ddd056da19a9e99b10601a557ebbcaf101d0de9
Author: Steve Langasek <steve.langasek@canonical.com>
Date: Wed Feb 11 18:36:34 2009 -0500
close directory to fix leak
Chris Jones observed that console-kit-daemon had open a large
number of
redundant file descriptors, pointing to /etc/ConsoleKit/run-session.d
and
/usr/lib/ConsoleKit/run-session.d. It turns out that
ck_run_programs() doesn't
close the directory handles after iterating, resulting in a fd leak
and a small
memory leak.
The attached patch corrects this.
src/ck-run-programs.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit a00c329d81be8691e13915ed36f5053bd0f820f3
Author: Martin Pitt <martin.pitt@ubuntu.com>
Date: Wed Feb 11 16:30:34 2009 -0500
add "nox11" option to the PAM module
Ignores PAM sessions where PAM_TTY is an X11 display. This allows
adding
pam_ck_connector to PAM's "common-session" without interfering
with the already existing ConsoleKit operations in gdm, the
Xsession script, etc.
https://bugs.freedesktop.org/show_bug.cgi?id=16746
pam-ck-connector/pam-ck-connector.c | 7 +++++++
pam-ck-connector/pam_ck_connector.8 | 4 ++++
2 files changed, 11 insertions(+), 0 deletions(-)
commit 946c2daf3f654475e767ae98e52cbcd69e2c3320
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Feb 11 16:06:04 2009 -0500
add example upstart events for logging
These can be used to add system start/stop/restart logging
but hooking into Upstart event mechanism.
data/Makefile.am | 3 +++
data/ck-log-system-restart | 8 ++++++++
data/ck-log-system-start | 8 ++++++++
data/ck-log-system-stop | 8 ++++++++
4 files changed, 27 insertions(+), 0 deletions(-)
commit e0d9cc359b3099307067107b59ec691418e280b8
Author: Colin Walters <walters@verbum.org>
Date: Sun Jan 18 13:06:37 2009 -0500
fix up D-Bus permissions
data/ConsoleKit.conf | 120
+++++++++++++++++++++++++++++++++-----------------
1 files changed, 80 insertions(+), 40 deletions(-)
commit 6ef0f62dc8b41c6904099c2d2836747da38d69df
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Oct 2 14:18:16 2008 -0400
check the result of the fchown call
src/ck-event-logger.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
commit a58a4bff451dcf8a6019aed1b2fb276e9836b0f4
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Oct 2 14:15:10 2008 -0400
don't close the log file fd twice
Fixes #17866
src/ck-event-logger.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
commit 35794ece08bc678a537d0c2a680b79f9232dfe36
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Oct 2 13:56:58 2008 -0400
fix typo
Fixes #17741
libck-connector/ck-connector.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit f0fb2d1cfd0f0ea3ad922175e895a9e751498a03
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Aug 20 19:48:08 2008 -0400
allow calling method SetIdleHint by default
data/ConsoleKit.conf | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
commit cb445f89d64d2171c1050dbf8ba1280f2260bc9c
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Jul 30 20:56:43 2008 -0400
post release bump again
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 9555166f23499642b64b247bd7106287c5b415c2
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Jul 30 20:56:22 2008 -0400
undo
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit 6e26aa3e9ae08b4c35539100d1605cd7c3f29a25
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Jul 30 20:55:28 2008 -0400
post release version bump
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 129efd6638cab89a3bc75a2b5f252e613a30163d
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Jul 30 20:38:21 2008 -0400
update for 0.3.0 release
NEWS | 42 ++++++++++++++++++++++++++++++++++++++++++
configure.ac | 2 +-
src/ck-session.c | 2 +-
3 files changed, 44 insertions(+), 2 deletions(-)
commit 456065f3f8d9ba785b0d2d9dc247fc9fb4fe9ba0
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Jul 30 18:06:31 2008 -0400
don't allow reboot if PolicyKit and RBAC are disabled
configure.ac | 11 ++++++++++-
src/ck-manager.c | 27 ++++++++++++++-------------
2 files changed, 24 insertions(+), 14 deletions(-)
commit 53d7c964bcdd29d6d22c4e78afe1ee5a2937bf95
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Jul 30 17:45:07 2008 -0400
fix path in includes
doc/dbus/ConsoleKit.xml.in | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
commit edad750e967458f55b9e761af966f325213ce9fe
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Jul 30 17:37:24 2008 -0400
reorganize the docs a bit
configure.ac | 4 +-
doc/.gitignore | 2 -
doc/Makefile.am | 41
+---------------------------
doc/{ => dbus}/.gitignore | 0
doc/{ => dbus}/ConsoleKit.xml.in | 0
doc/dbus/Makefile.am | 46
+++++++++++++++++++++++++++++++
doc/{xml => dbus}/ck-design.xml | 0
doc/{xml => dbus}/ck-introduction.xml | 0
doc/{xml => dbus}/ck-terms.xml | 0
doc/{ => dbus}/config.xsl | 0
doc/{ => dbus}/dbus-introspect-docs.dtd | 0
doc/{ => dbus}/docbook.css | 0
doc/{xml => dbus}/spec-to-docbook.xsl | 0
doc/xml/Makefile.am | 20 -------------
14 files changed, 49 insertions(+), 64 deletions(-)
commit 77fe8e2e89af7cd21357116e9668b23d958fb2a5
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Jul 24 00:32:21 2008 -0400
pull updated DTD and xsl from DeviceKit-disks
doc/dbus-introspect-docs.dtd | 4 +-
doc/xml/spec-to-docbook.xsl | 171
++++++++++++++++++++++++++++++++++--------
2 files changed, 141 insertions(+), 34 deletions(-)
commit 3133a9ad1a1eb05ad6717d8ee8ede782b833ee67
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Jul 24 00:18:32 2008 -0400
fix distcheck
doc/Makefile.am | 1 +
doc/xml/Makefile.am | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
commit aad5b87b7e2f993aef418822d52d8dca5345fce5
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Jul 24 00:06:57 2008 -0400
still having problems using xinclude
doc/ConsoleKit.xml.in | 23 ++++++++++++++++-------
doc/xml/Makefile.am | 5 +----
2 files changed, 17 insertions(+), 11 deletions(-)
commit cda2111bd2a12fc246c6e7973ae7fae4ff779bca
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Jul 23 23:42:17 2008 -0400
fix the includes
doc/ConsoleKit.xml.in | 23 +++++++----------------
doc/{xml => }/dbus-introspect-docs.dtd | 0
doc/xml/Makefile.am | 6 +++---
3 files changed, 10 insertions(+), 19 deletions(-)
commit 460d6c9e42e84d3d66bfcadfbaa77a0e059caae7
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Jul 23 23:31:48 2008 -0400
add missing bits
doc/Makefile.am | 2 ++
doc/xml/Makefile.am | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)
commit e54095996b9066120ebf20011eba199d25422c2f
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Jul 23 23:22:36 2008 -0400
use spec files directly as introspection xml and try to generate
docs on the fly
At one point we had to strip out the docs because dbus-glib didn't
support
unknown tags. Apparently this is now fixed. Also install the xml to
/usr/share/dbus-1/interfaces.
configure.ac | 6 +
doc/Makefile.am | 6 +-
doc/tools/spec-strip-docs | 34 ---
doc/tools/spec-strip-docs.xsl | 36 ---
doc/tools/spec-to-docbook | 34 ---
doc/tools/update-from-spec | 25 --
doc/{ => xml}/dbus-introspect-docs.dtd | 0
doc/xml/ref-ck-manager.xml | 199 ---------------
doc/xml/ref-ck-seat.xml | 87 -------
doc/xml/ref-ck-session.xml | 258
--------------------
doc/{tools => xml}/spec-to-docbook.xsl | 0
src/Makefile.am | 23 +-
src/ck-manager.xml | 70 ------
src/ck-seat.xml | 39 ---
src/ck-session.xml | 81 ------
.../org.freedesktop.ConsoleKit.Manager.xml | 0
.../org.freedesktop.ConsoleKit.Seat.xml | 0
.../org.freedesktop.ConsoleKit.Session.xml | 0
18 files changed, 23 insertions(+), 875 deletions(-)
commit 34cefc96f7661ed92927bffa1cf7cbc79a84e5ab
Author: William Jon McCann <jmccann@redhat.com>
Date: Tue Jul 22 18:28:06 2008 -0400
use object paths for seat added/removed signals per spec
src/ck-manager.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
commit 25546d381557f5da8dd8db54c857442193c5340b
Author: William Jon McCann <jmccann@redhat.com>
Date: Tue Jul 22 17:23:59 2008 -0400
regenerate the docs and xml from the spec
doc/xml/ref-ck-session.xml | 6 +++++-
src/ck-session.xml | 3 +++
2 files changed, 8 insertions(+), 1 deletions(-)
commit f0dbc3ee0c8fb53f2b9eed000d72fb923a83a474
Author: William Jon McCann <jmccann@redhat.com>
Date: Tue Jul 22 14:30:22 2008 -0400
add GetLoginSessionId to exported interface
doc/spec/ck-session.xml | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
commit e1cfb5cb97eee87ce34ba5ce586bf1e90f485874
Author: William Jon McCann <jmccann@redhat.com>
Date: Tue Jul 22 14:29:54 2008 -0400
fix use of unix-user as int
tools/list-sessions.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
commit f757f22786dfa0bf034c5c1d66d47ecafc871606
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Jul 21 16:48:21 2008 -0400
use fortify source flag when building from git
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 34291722aa95394b7470099394b936dfc70022eb
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Jul 21 14:28:09 2008 -0400
fix location of scripts again
tools/linux/Makefile.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit fa2bad04422d8c34974121cae68069a9e2d2e841
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Jul 21 13:55:16 2008 -0400
dist bzip by default
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 8e6002b4bcf441e6a650d0adacf4a1eafe34cd54
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Jul 21 13:50:55 2008 -0400
fix up signal definition
src/ck-seat.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit bab014f7f827c0d5306d029d08bf234b7a452282
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Jun 11 12:00:03 2008 -0400
fix UnixUser to be uint
Pointed out by Lennart Poettering
doc/spec/ck-session.xml | 4 ++--
doc/xml/ref-ck-session.xml | 8 ++++----
src/ck-session.xml | 7 ++-----
3 files changed, 8 insertions(+), 11 deletions(-)
commit 25663a88377d76f9e722635bec96627ed0db4e43
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Jun 11 11:46:59 2008 -0400
use object paths instead of strings for signals
Pointed out by Lennart Poettering
src/ck-seat.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit dfcab49480565a7bcf71752c5b39eb367df81a19
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon May 5 15:12:39 2008 -0400
cleanly shutdown event logging thread
src/ck-event-logger.c | 28 +++++++++++++++++++++++++---
src/ck-log-event.h | 8 +++++++-
2 files changed, 32 insertions(+), 4 deletions(-)
commit 844de7d4b6d29d57a5425dcc7d0d3f6d4b005311
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon May 5 14:20:25 2008 -0400
export login session id to the bus
data/ConsoleKit.conf | 2 ++
src/ck-manager.c | 9 +++++++++
src/ck-session.c | 2 +-
src/ck-session.h | 6 +++---
src/ck-session.xml | 3 +++
src/test-method-access-policy | 13 +++++++++++++
tools/list-sessions.c | 9 +++++++--
7 files changed, 38 insertions(+), 6 deletions(-)
commit 8ec523138671a8fe93748a0b75adaaca96e2392e
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon May 5 13:34:08 2008 -0400
exit with the bus now that we're activated by the bus
src/main.c | 65
+++++++----------------------------------------------------
1 files changed, 8 insertions(+), 57 deletions(-)
commit c7116a525f643dead46873a81cf7a03bf5c54d55
Author: David Zeuthen <davidz@redhat.com>
Date: Sun Apr 20 16:01:13 2008 -0400
allow retaining authorizations for {stop,restart}-multiple-users
data/org.freedesktop.consolekit.policy | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit 5d62baaba55a1777b60284802d83d3e9befe60c9
Author: William Jon McCann <jmccann@redhat.com>
Date: Sat Apr 19 01:28:27 2008 -0400
make sure to add all override parameters
src/ck-session-leader.c | 30
++++++++++++++++++++++--------
src/test-open-session-with-parameters | 2 +-
2 files changed, 23 insertions(+), 9 deletions(-)
commit 5dbbfa91469135f59351cf3bffcf2d51b40f912f
Author: William Jon McCann <jmccann@redhat.com>
Date: Sat Apr 19 01:05:42 2008 -0400
fix the script to work with recent dbus-python api changes
src/ck-job.c | 1 -
src/test-open-session-with-parameters | 20 ++++++++++----------
2 files changed, 10 insertions(+), 11 deletions(-)
commit fbb42449670f21cdeb7f0106fc617e276d7e229c
Author: William Jon McCann <jmccann@redhat.com>
Date: Sat Apr 19 00:48:10 2008 -0400
always try to detect parameters for session
Treat the parameters passed in via OpenSessionWithParameters
as overrides.
src/ck-manager.c | 16 ++----
src/ck-session-leader.c | 120
+++++++++++++++++++++++++++++++++++++++++++++-
src/ck-session-leader.h | 63 +++++++++++++------------
src/ck-vt-monitor.c | 1 -
4 files changed, 155 insertions(+), 45 deletions(-)
commit e30bc7486fe4e872a7b91f1566bc2c880deb63b7
Author: William Jon McCann <jmccann@redhat.com>
Date: Fri Apr 18 16:19:35 2008 -0400
oops one more place
tools/solaris/Makefile.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 3c8db75b2ffdba1627a7030a4b57ce7ee8e474f2
Author: William Jon McCann <jmccann@redhat.com>
Date: Fri Apr 18 16:11:59 2008 -0400
install scripts into $(prefix)/lib instead of $libdir
We don't want scripts going into lib64...
src/Makefile.am | 2 +-
src/ck-manager.c | 4 ++--
src/ck-session.c | 2 +-
tools/freebsd/Makefile.am | 2 +-
tools/linux/Makefile.am | 2 +-
tools/solaris/Makefile.am | 2 +-
6 files changed, 7 insertions(+), 7 deletions(-)
commit f2bcc2a62015f6762eb426c25b7350ddf828bb0c
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Apr 16 17:32:50 2008 -0400
return PolicyKit results when not privileged for action
src/ck-manager.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
commit 933b89337028006b508e3ed964803753dea027c0
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Apr 16 17:30:15 2008 -0400
fix typo
data/org.freedesktop.consolekit.policy | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit e633be1b9a81cfb7993e469066e50af47f563575
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Apr 3 22:09:26 2008 -0400
initial login session id support
Linux audit session id support. Still TODO:
* determine if session id should be hidden
* export to bus
* add to event log
* figure out how to add it to non-generated sessions
src/ck-session-leader.c | 1 +
src/ck-session.c | 48 ++++++++++++++++++++++++++++
src/ck-session.h | 6 +++
src/ck-sysdeps-freebsd.c | 9 +++++
src/ck-sysdeps-linux.c | 66
+++++++++++++++++++++++++++++++++++++++
src/ck-sysdeps-solaris.c | 9 +++++
src/ck-sysdeps.h | 2 +
tools/ck-collect-session-info.c | 10 ++++++
8 files changed, 151 insertions(+), 0 deletions(-)
commit 4740245c6f6137175ef51be2207c35185f4d98f1
Author: William Jon McCann <jmccann@redhat.com>
Date: Fri Feb 29 15:25:54 2008 -0500
display uid as unix-user to match api
tools/list-sessions.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 970fbb66cb86c2a8b0ecbccbf8107c85b72343ae
Author: William Jon McCann <jmccann@redhat.com>
Date: Fri Feb 29 15:25:43 2008 -0500
fix packaging of policy file
data/Makefile.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 72a2abee7a963bef52561766131e1b52a85409a3
Author: William Jon McCann <jmccann@redhat.com>
Date: Tue Feb 26 14:18:22 2008 -0500
rename policy file
...it.policy => org.freedesktop.consolekit.policy} | 0
1 files changed, 0 insertions(+), 0 deletions(-)
commit 1d7b97d3a393996ffb95d9c23b081b4cf6c54ed0
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Feb 25 19:43:04 2008 -0500
post release version bump
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit c57bc09f5c1eaa216c8850ae64cc1735ce5c2bb1
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Feb 25 19:41:56 2008 -0500
update for release
NEWS | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
commit 9e78825cef3db4e13cffbfd024bda365403aa6ba
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Feb 25 19:19:31 2008 -0500
always create the directories we need
src/ck-event-logger.c | 22 ++++++++++++++--
src/ck-manager.c | 63
++++++++++++++++++++++++++++++------------------
src/main.c | 50 ++++++++++++++++++++++++++++----------
3 files changed, 95 insertions(+), 40 deletions(-)
commit 414f7cc1e62474da69058884c5b683dc20e3a8f6
Author: Simon Zheng <simon.zheng@sun.com>
Date: Mon Feb 25 17:14:11 2008 -0500
properly get display device on Solaris
Mapping between device path and (major, minor).
"/dev/vt" -- (15,*)
"/dev/pts" -- (24,*)
"/dev/console" -- (0,0)
"NO_TTY_VALUE" - (-1,-1)
Also, solaris VT device is named like this.
/dev/console --- VT #1
/dev/vt/2 --- VT #2
/dev/vt/3 --- VT #3
/dev/vt/N --- VT #4
src/ck-sysdeps-solaris.c | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
commit 5315cd9e36f86f9d1ea1419c6521524a68801d4a
Author: Brian Cameron <brian.cameron@sun.com>
Date: Mon Feb 25 16:37:03 2008 -0500
fix solaris x11-display-device when no vt available
This patch fixes ConsoleKit
so it sets x11-display-device to "/dev/console" when not using
VT.
src/ck-sysdeps-solaris.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
commit fc9abc6db6616b6960db070c98bad21f990a040e
Author: Brian Cameron <Brian.Cameron@sun.com>
Date: Mon Feb 25 15:17:10 2008 -0500
solaris doesn't like printing null
src/ck-seat.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit f993c1d8970e3aae7de7dea6e1ae5c6d325865b2
Author: Brian Cameron <Brian.Cameron@sun.com>
Date: Mon Feb 25 15:11:02 2008 -0500
fix display of active vt when vt is disabled
This fixes the Active device so it is set to "/dev/console" when not
using VT. Without this patch, the syslog reports messages like:
Active device: /dev/vt/3508388860
Which is obviously wrong if not using VT at all.
src/ck-sysdeps-solaris.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
commit f39d3756e1d9da62de923ba470d3312b89bea6be
Author: Brian Cameron <Brian.Cameron@sun.com>
Date: Mon Feb 25 15:05:44 2008 -0500
fix solaris vt handling to work when no vt available
This fixes the patch that
Simon Zhang sent you earlier so that it builds on machines
without VT.
src/ck-vt-monitor.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
commit f551717e1830e86a8ccf5312f79ce8882af9f352
Author: Simon Zheng <Simon.Zheng@sun.com>
Date: Tue Feb 19 11:34:15 2008 -0500
improve supporting Solaris VT switching
Here's a patch for ConsoleKit to improve supporting Solaris VT. Two
changes are made.
- Solaris supports synchronous event notification in STREAMS. Using
this, we can avoid creating many threads for idle VTs.
By setting the S_MSG flag in an I_SETSIG STREAMS ioctl, applications
can
get a synchronous notification of VT switching. In other words, these
processes are able to receive a SIGPOLL signal when a VT switching
succeeds.
- Change a little command line of getting maximum vt console numbers.
src/ck-sysdeps-solaris.c | 2 +-
src/ck-vt-monitor.c | 59
++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 60 insertions(+), 1 deletions(-)
commit 94d4dd225c6d161411f33396aec23a33a6661da6
Author: William Jon McCann <jmccann@redhat.com>
Date: Tue Feb 19 11:04:51 2008 -0500
don't include paths.h on systems that don't have it
src/ck-event-logger.c | 1 -
tools/ck-launch-session.c | 5 +++++
2 files changed, 5 insertions(+), 1 deletions(-)
commit 190aed4effbfb9a982f46250c82994f58f4e5fb5
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Feb 13 11:37:20 2008 -0500
create the log file with S_IROTH and don't touch the log on build
src/Makefile.am | 2 --
src/ck-event-logger.c | 3 ++-
2 files changed, 2 insertions(+), 3 deletions(-)
commit 6dda865f8fbe87a10a6047eb2db2c4fd1c94af17
Author: William Jon McCann <jmccann@redhat.com>
Date: Tue Feb 12 22:55:58 2008 -0500
post release version bump
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 72ce8d82848a6ee9634d9dd1610c5ba0074db4ae
Author: William Jon McCann <jmccann@redhat.com>
Date: Tue Feb 12 22:54:24 2008 -0500
update for release
NEWS | 3 +++
tools/Makefile.am | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
commit 5ab3eee820e97d632aa9401cbd2d25dc828ee1f0
Author: William Jon McCann <jmccann@redhat.com>
Date: Tue Feb 12 22:30:05 2008 -0500
ck_seat_get_active_session shouldn't return a null ssid
Da bus no likey nulls for object paths. Return false and set
error if there is no active session.
src/ck-manager.c | 31 +++++++++++--------------------
src/ck-seat.c | 26 +++++++++++++++++++++++---
src/test-method-access-policy | 2 +-
3 files changed, 35 insertions(+), 24 deletions(-)
commit 885708f75f493b85fb67114d112e950b6bfac652
Author: William Jon McCann <jmccann@redhat.com>
Date: Tue Feb 12 15:32:15 2008 -0500
guard against writing null string to keyfile
Also make criticals fatal when starting with --debug.
src/ck-seat.c | 6 +++++-
src/ck-session.c | 47 ++++++++++++++++++++++++++++++++++++++---------
src/main.c | 5 +++++
3 files changed, 48 insertions(+), 10 deletions(-)
commit 40dff5a03c7b085e34a7052efd23651d5be7674f
Author: William Jon McCann <jmccann@redhat.com>
Date: Tue Feb 12 15:00:46 2008 -0500
reverse the sense of the dbus policy
Deny first and then allow. Add a simple test
script to check method access policy.
NEWS | 7 +
data/ConsoleKit.conf | 94 ++++++--
src/test-method-access-policy | 517
+++++++++++++++++++++++++++++++++++++++++
3 files changed, 598 insertions(+), 20 deletions(-)
commit 685f2cbf9d69da556907ba6c935fe6ab1d2eeda3
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Feb 11 15:31:42 2008 -0500
add a ck-launch-session tool
This tool opens a session with ConsoleKit and runs a command in it.
Makefile.am | 2 +-
tools/.gitignore | 1 +
tools/Makefile.am | 11 ++++++
tools/ck-launch-session.c | 87
+++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 100 insertions(+), 1 deletions(-)
commit e2fa0c66a6ef8dafa8b503d0b077deb17f3fc512
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Feb 11 14:51:21 2008 -0500
don't set the session-type to the command name
tools/ck-collect-session-info.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
commit e0f13df14e4f7289c35ebb376eaf7e1ffb2a2317
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Feb 11 13:09:56 2008 -0500
post release version bump
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit bceedd666cd25abf0aa09807bdb17ddf87f503f9
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Feb 11 13:08:13 2008 -0500
update for release
NEWS | 11 +++++++++++
tools/.gitignore | 2 ++
2 files changed, 13 insertions(+), 0 deletions(-)
commit 3f178c6d15daed161fe3bd7f5d9019a592cc564a
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Feb 11 12:33:16 2008 -0500
add tools to log restart and stop events
This should probably be used by init instead of
logging the event from CK.
tools/Makefile.am | 20 +++++
tools/ck-log-system-restart.c | 174
+++++++++++++++++++++++++++++++++++++++++
tools/ck-log-system-stop.c | 174
+++++++++++++++++++++++++++++++++++++++++
3 files changed, 368 insertions(+), 0 deletions(-)
commit 710a4f5404049762ea49644c74aadb59737be37d
Author: William Jon McCann <jmccann@redhat.com>
Date: Mon Feb 11 11:11:45 2008 -0500
fix typo in dbus policy file
data/ConsoleKit.conf | 2 +-
src/test-open-session-with-parameters | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
commit e59d5e9a9974a14043c98c292936584cefa930d3
Author: William Jon McCann <jmccann@redhat.com>
Date: Thu Feb 7 19:29:34 2008 -0500
touch the history file to create it for people not using packages
src/Makefile.am | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
commit a7a00ec7f7237bd0150ed98dba5e796236135e28
Author: William Jon McCann <jmccann@redhat.com>
Date: Wed Feb 6 17:04:14 2008 -0500
mkdir /var/log/ConsoleKit at install time
src/Makefile.am | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit edd2422e91f80850c1adfcd3d6d6c723b7947ccf
Author: William Jon McCann <jmccann@redhat.com>
Date: Tue Feb 5 11:12:33 2008 -0500
set a global flag so that D-Bus does not change the SIGPIPE handler
in the PAM module
pam-ck-connector/pam-ck-connector.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
commit 076d63698c204427b210a2da76dc1b7e6640bbb9
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Feb 1 14:20:00 2008 -0500
when a parsing error occurs don't return an empty event
src/ck-log-event.c | 21 +++++++++++++--------
tools/ck-history.c | 12 ++++++------
2 files changed, 19 insertions(+), 14 deletions(-)
commit 185c0f5169dbcb55854491d9ab642c7b5c6418ca
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Jan 30 20:12:47 2008 -0500
post release version bump
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 53e2ffa946b09dc29d40d822a290e30fbe169888
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Jan 30 20:11:47 2008 -0500
update for 0.2.7 release
NEWS | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
commit a034e3992b4c9c2d3723b14003483d4b39eab118
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Jan 29 16:16:35 2008 -0500
update gitignore files
data/.gitignore | 1 +
src/.gitignore | 1 +
tools/.gitignore | 4 +++-
3 files changed, 5 insertions(+), 1 deletions(-)
commit c08f52a53901cda1082a010cb2d6b013f3ae50a4
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Jan 29 16:14:04 2008 -0500
add a helper to write a system start record to the CK history
src/ck-log-event.c | 2 +-
tools/Makefile.am | 13 +++
tools/ck-log-system-start.c | 174
+++++++++++++++++++++++++++++++++++++++++++
3 files changed, 188 insertions(+), 1 deletions(-)
commit 1a545ba0744532f2936899806523214d3a067769
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Jan 29 14:06:45 2008 -0500
add support for logging start/stop/restart
Also enable reporting this information with ck-history.
src/ck-log-event.c | 211 ++++++++++++++++++++++++-
src/ck-log-event.h | 19 ++-
src/ck-manager.c | 59 +++++++-
tools/ck-history.c | 444
++++++++++++++++++++++++++++++++++------------------
4 files changed, 564 insertions(+), 169 deletions(-)
commit d8dcc8755a87a238ba37bc5275f142c92535915e
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Jan 28 22:26:53 2008 -0500
fix typo in man page
pam-ck-connector/pam_ck_connector.8 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit f38aba5d2a26b7c9ea0b7a5631281ed7cf678de4
Author: Marc-Andre Lureau <marcandre.lureau@gmail.com>
Date: Mon Jan 28 22:23:35 2008 -0500
make autogen work with aclocal 1.10
https://bugs.freedesktop.org/show_bug.cgi?id=14175
autogen.sh | 179
+++++--------------------------------------
libck-connector/Makefile.am | 2 +-
2 files changed, 19 insertions(+), 162 deletions(-)
commit 48519104df6037f8653ec62497796ba781dc0040
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Jan 28 19:56:19 2008 -0500
allow session type filtering for all report formats
tools/ck-history.c | 31 ++++++++++++++++++++++---------
1 files changed, 22 insertions(+), 9 deletions(-)
commit 5895396bc583ae08c5041f5b81f5f9d0a2888e22
Author: Brian Cameron <brian.cameron@sun.com>
Date: Mon Jan 28 17:43:05 2008 -0500
make polkit optional and use RBAC on Solaris
This patch makes polkit an optional dependency. If present
it builds with it. If not, polkit support is disabled.
This patch also adds a --enable-rbac-shutdown=<key> option.
If set, then ConsoleKit will allow shutdown/reboot if the
user has the RBAC key authorization defined. For example,
since the GDM GUI program runs as the "gdm" user, setting
the key for the "gdm" user allows the login program to
shutdown and reboot via ConsoleKit.
Also this patch modifies the tools/solaris/ck-system-restart
and tools/solaris/ck-system-stop scripts to call "/sbin/init 6"
and "/sbin/init 5", which are the right commands for Solaris.
configure.ac | 30 ++++++++++++++++-
data/Makefile.am | 2 +
src/Makefile.am | 7 ++++
src/ck-manager.c | 71
++++++++++++++++++++++++++++++++++++++-
tools/solaris/ck-system-restart | 11 +-----
tools/solaris/ck-system-stop | 11 +-----
6 files changed, 110 insertions(+), 22 deletions(-)
commit 96d613ee9a4850753e8f93113ab28ed3045f73f3
Author: Brian Cameron <brian.cameron@sun.com>
Date: Mon Jan 28 17:30:47 2008 -0500
fixes for solaris
Fixes two bugs I found in the code. The first is that
we need some NULL protection around the g_strdup_printf
where we build CK_SESSION_X11_DISPLAY to avoid a crash.
Second, I noticed a bug in the ck_unix_pid_get_hash
function where we weren't parsing the data right and
causing the hash to not get set properly.
src/ck-session.c | 3 ++-
src/ck-sysdeps-solaris.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
commit 9aca4062ec226c8099b5d46467ad72792e9977dc
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Jan 28 17:17:13 2008 -0500
add session-type filtering to ck-history
src/ck-seat.c | 2 ++
tools/ck-history.c | 22 ++++++++++++++--------
2 files changed, 16 insertions(+), 8 deletions(-)
commit 6fe785aaddda2537aa4335e88c0606eda36b75ee
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Jan 28 10:59:04 2008 -0500
try to activate x11-display-device not only display-device
src/ck-seat.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
commit af7dbbc29151ccfe063625159ea531fbbfc85a07
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Jan 24 09:38:26 2008 -0500
post release version bump
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 2064706053eb73d88655c0e1bc8dd7d1e144034e
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Jan 24 09:37:16 2008 -0500
update for 0.2.6 release
NEWS | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
commit d3e1069434bfff5e0c6236cbdec20db2a7d68d2c
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Jan 23 23:12:02 2008 -0500
be a little smarter about how we compute the number of users
src/ck-manager.c | 96
++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 94 insertions(+), 2 deletions(-)
commit 8dd0bb52b3cabf8673ecd3ede820b48ab6f6436f
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Jan 23 21:59:48 2008 -0500
fix policy action name
data/ConsoleKit.policy | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit 4833651f336ee8f1cb266cf0c61fe527d3d5f713
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Jan 23 16:26:22 2008 -0500
post release version bump
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 40d21bbea73ae15afb4823d58cada8ab9399235f
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Jan 23 16:25:23 2008 -0500
release 0.2.5
NEWS | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
commit 3c618213b2ada61496b49c4d8c5612df4f082d14
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Jan 23 16:07:15 2008 -0500
history should log to /var/log not /var/run
src/ck-event-logger.c | 2 +-
src/ck-manager.c | 2 +-
tools/ck-history.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
commit b1d56d43f357185594e5730d6bfb7e7db1f633c3
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Jan 23 15:06:02 2008 -0500
post release version bump
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 8ec349dc86f617c8055c091fd5a9be80889d96f1
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Jan 23 14:30:48 2008 -0500
release 0.2.4
NEWS | 36 ++++++++++++++++++++++++++++++++++++
configure.ac | 2 ++
2 files changed, 38 insertions(+), 0 deletions(-)
commit 8148ef7a28e3f52f7bd91a0f85fd47ce0cb1d11f
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Jan 23 13:16:30 2008 -0500
actually register the error type with dbus
src/ck-manager.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit 6ad7516f69f08c9c5e30332f95b50c0dd0cd1cb1
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Jan 23 11:04:23 2008 -0500
add GetSessions method to Manager interface
doc/spec/ck-manager.xml | 17 +++++++++++++++++
doc/xml/ref-ck-manager.xml | 10 +++++++++-
src/ck-manager.c | 25 +++++++++++++++++++++++++
src/ck-manager.h | 3 +++
src/ck-manager.xml | 3 +++
5 files changed, 57 insertions(+), 1 deletions(-)
commit 4b866a4af70fb19e8b0652637815ab24ad630065
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Jan 23 09:37:55 2008 -0500
add error type to manager
src/ck-manager.c | 22 ++++++++++++++++++++++
src/ck-manager.h | 6 +++++-
2 files changed, 27 insertions(+), 1 deletions(-)
commit 5ce97e6f22fd25279793fbc75211d2e86413ae73
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Jan 22 17:03:46 2008 -0500
initial stop/restart support
Add Stop and Restart methods to the Manager object. We'll rename the
Manager object to System in the near future. Use libpolkit to
determine authorization.
configure.ac | 2 +
data/ConsoleKit.policy | 48 +++
data/Makefile.am | 4 +
doc/spec/ck-manager.xml | 18 +
doc/xml/ref-ck-manager.xml | 10 +-
src/ck-manager.c | 667
+++++++++++++++++++++++++++++++++++----
src/ck-manager.h | 10 +-
src/ck-manager.xml | 6 +
tools/Makefile.am | 10 +
tools/freebsd/Makefile.am | 38 +++
tools/freebsd/ck-system-restart | 12 +
tools/freebsd/ck-system-stop | 18 +
tools/linux/Makefile.am | 38 ++-
tools/linux/ck-system-restart | 12 +
tools/linux/ck-system-stop | 12 +
tools/solaris/Makefile.am | 38 +++
tools/solaris/ck-system-restart | 12 +
tools/solaris/ck-system-stop | 12 +
18 files changed, 890 insertions(+), 77 deletions(-)
commit 2fba24e67597bf59ae00db2867df7a348c81b094
Author: Peter Jones <pjones@redhat.com>
Date: Sat Dec 8 23:04:03 2007 -0500
use VT_GETSTATE and tty0 to identify a console_ioctl on linux
ConsoleKit tries to find a valid fd it can issue
VT_WAITACTIVE against by iterating across a file list and issuing
ioctl(fd, KDGKBTYPE, &arg), then checking the return value.
Not all console
devices support this ioctl, so in some cases it never finds a
valid file
descriptor to use, and from then on never marks any session active.
We probably ought to be using something like VT_GETSTATE instead of
a keyboard
ioctl, but that's not sufficient to fix it. One fix that seems to
work, though
I'm not completely sure if it's the best answer, is to add /dev/tty0
to the list
of files to try before /dev/console.
src/ck-sysdeps-unix.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
commit 751b95f2aa2eb2cea7fe9e0dec0848865d118ad0
Author: Michael Biebl <mbiebl@gmail.com>
Date: Sat Dec 8 22:50:17 2007 -0500
remove obsolete sysv init script
given that my first patch get's applied, it makes sense to remove the
old sysv init script, as it's not really needed anymore. Besides, most
distros will not use this init script anyways as they have special
policies for their init script and provide their own.
data/ConsoleKit.in | 70
----------------------------------------------------
data/Makefile.am | 15 +----------
2 files changed, 1 insertions(+), 84 deletions(-)
commit eb610a07a17db29138df50cafa4cf131a645332e
Author: Michael Biebl <mbiebl@gmail.com>
Date: Sat Dec 8 22:45:42 2007 -0500
start CK service on-demand using D-Bus system activation
the attached patch installs a D-Bus system service file. This way the
CK service can be started on demand. This obviously makes the sysv
init script obsolete.
Requirements are dbus >= 1.1.2
data/Makefile.am | 9 ++++++++-
data/org.freedesktop.ConsoleKit.service.in | 4 ++++
2 files changed, 12 insertions(+), 1 deletions(-)
commit 7d167e65868cb2aa40273ee8ccd33cca5968438b
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Oct 22 21:23:08 2007 -0400
dump session leader info
src/ck-manager.c | 9 +++++++++
src/ck-session-leader.c | 15 ++++++++++++---
2 files changed, 21 insertions(+), 3 deletions(-)
commit 7b65ac249a1e28c9af25eb91919d898c3e0f8162
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Oct 22 21:00:16 2007 -0400
error out if unknown options are passed on command line
src/main.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
commit 5db2f7fdc2d1c5a45bc33d916d82c23178568923
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Oct 22 20:54:10 2007 -0400
move session leader stuff into a separate class
This will make it easier to dump/restore.
src/Makefile.am | 2 +
src/ck-manager.c | 482 +++++++++--------------------------------
src/ck-session-leader.c | 558
+++++++++++++++++++++++++++++++++++++++++++++++
src/ck-session-leader.h | 97 ++++++++
4 files changed, 762 insertions(+), 377 deletions(-)
commit 252f542201036d36aa01ade9bd381624391cfb34
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Oct 22 16:57:47 2007 -0400
try to handle log rotation
src/ck-event-logger.c | 53
+++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 45 insertions(+), 8 deletions(-)
commit 4c842f1e108a0e9a412ac599cc4cfc954d801e62
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Oct 22 16:14:07 2007 -0400
add support for reporting from logrotated files
configure.ac | 30 +++++++++--
src/ck-event-logger.c | 9 +++-
tools/Makefile.am | 6 ++-
tools/ck-history.c | 128
+++++++++++++++++++++++++++++++++++++++++++++----
4 files changed, 154 insertions(+), 19 deletions(-)
commit 7e30b7d07d2f6216b6a8d2f75f3494d3947f0584
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Oct 22 11:34:02 2007 -0400
add a basic --frequent report
tools/ck-history.c | 109
++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 109 insertions(+), 0 deletions(-)
commit 73f5875de6c8d2e3f79fcb2c5d570836f6df74d5
Merge: e419ced 7b834cb
Author: William Jon McCann <mccann@jhu.edu>
Date: Sun Oct 21 23:59:55 2007 -0400
Merge branch 'master' of git+ssh://git.freedesktop.org/git/ConsoleKit
commit e419ced301a9e0d5f98c8cee030fe50158a2d291
Author: William Jon McCann <mccann@jhu.edu>
Date: Sun Oct 21 23:59:32 2007 -0400
add last mode, filtering by user/seat; shorten logged ids
src/ck-manager.c | 34 +++++++---
tools/ck-history.c | 177
++++++++++++++++++++++++++++++++++++++++++++++++---
2 files changed, 190 insertions(+), 21 deletions(-)
commit 7b834cbcc29a2a8423569a738cef3bce3c9f10bd
Author: William Jon McCann <mccannwj@acsnb1.pha.jhu.edu>
Date: Sat Oct 20 19:17:52 2007 -0400
add bugzilla url
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 7880c2eacaa45196b83a9032371f487f6fe312e4
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Oct 19 16:46:43 2007 -0400
check for oldest being null
tools/ck-history.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
commit 2ef61beadf1b4c938bb13bb3b460f69bcc720193
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Oct 19 16:30:52 2007 -0400
rename --last to --last-compat
tools/ck-history.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
commit 92c036e50f2d0989651c43e2db78110a2a2fd5b0
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Oct 19 16:28:24 2007 -0400
a few fixes for last patch
tools/ck-history.c | 29 +++++++++++++++++++++++++----
1 files changed, 25 insertions(+), 4 deletions(-)
commit 489396ba206bb1e3b82bb504151b0a83d405b33d
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Oct 19 16:16:18 2007 -0400
add a last compatible outout format to ck-history
tools/ck-history.c | 175
++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 169 insertions(+), 6 deletions(-)
commit 36419b9ca34a89721746950eb78bb78c4bfb6206
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Oct 18 16:43:00 2007 -0400
use AC_GNU_SOURCE instead of #define
configure.ac | 3 +++
src/ck-event-logger.c | 2 --
2 files changed, 3 insertions(+), 2 deletions(-)
commit 1773b5f77b9c575ab8fc3e3d692e8a7056fe2959
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Oct 17 17:09:03 2007 -0400
add a basic ck-history command
Refactor some event logging code to share with ck-history. At the
moment the command only prints the events.
src/Makefile.am | 10 +-
src/ck-event-logger.c | 486 +---------------------
src/ck-event-logger.h | 99 +-----
src/ck-log-event.c | 1084
+++++++++++++++++++++++++++++++++++++++++++++++
src/ck-log-event.h | 131 ++++++
src/ck-manager.c | 42 +-
src/test-event-logger.c | 10 +-
tools/Makefile.am | 10 +
tools/ck-history.c | 157 +++++++
tools/list-sessions.c | 58 ++--
10 files changed, 1458 insertions(+), 629 deletions(-)
commit 0011a7aa94a9dbb00a322a1c08d5ac6a6dfdc21c
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Oct 16 16:40:44 2007 -0400
add event logging capability
This adds the ability to log events to a history file. One idea
is to be able to provide wtmp like functionality. The next step
is to add a seat-aware "last" command. This will be very useful
for creating graphical logins that remember the most recent/frequent
logins.
src/Makefile.am | 13 +
src/ck-event-logger.c | 828
+++++++++++++++++++++++++++++++++++++++++++++++
src/ck-event-logger.h | 161 +++++++++
src/ck-manager.c | 340 +++++++++++++++++++-
src/test-event-logger.c | 94 ++++++
5 files changed, 1430 insertions(+), 6 deletions(-)
commit a0a1ff87b1f4c93c147d5222a164138cb83ba149
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Oct 11 15:06:14 2007 -0400
remove emacs modeline
configure.ac | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
commit b2be103bd606291319dc312f07d1f3fcbfdf634c
Author: David Zeuthen <davidz@redhat.com>
Date: Wed Oct 10 13:39:15 2007 -0400
maintain a file with the dump of the local database
This feature is useful for programs wanting to read the database
without going through the D-Bus interface. This is sometimes desirable
when both performance and runtime dependencies are important.
For security reasons the file is only readable for the super user.
src/Makefile.am | 2 +
src/ck-manager.c | 204
++++++++++++++++++++++++++++++++++++++++++++++++++++--
src/ck-seat.c | 86 ++++++++++++++++++++++-
src/ck-seat.h | 4 +
src/ck-session.c | 38 ++++++++++
src/ck-session.h | 3 +
6 files changed, 330 insertions(+), 7 deletions(-)
commit bd43c78b3ab2ec7f85b17cca46d4b46f8671cd29
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Oct 10 12:53:45 2007 -0400
remove session/seat from list before signaling
We should remove the session or seat from the lists before
calling out or emitting a signal. We steal from the lists
and then unref the objects when the signal is complete.
src/ck-manager.c | 57
++++++++++++++++++++++++++++++++++++++++++-----------
src/ck-seat.c | 28 +++++++++++++++++++------
2 files changed, 66 insertions(+), 19 deletions(-)
commit a90ecd3544f03c16f6c5a97aafb1c0b33b58101c
Author: David Zeuthen <davidz@redhat.com>
Date: Thu Oct 4 20:39:09 2007 -0400
add a way to synchronously run programs on session
add/remove/activity_change
This patch adds support for running programs when
1. A session is added
2. A session is removed
3. The activity of a session changes
Executables with the suffix .ck in the directories
$sysconfdir/ConsoleKit/run-session.d
(typically /etc/ConsoleKit/run-session.d)
and
$libdir/ConsoleKit/run-session.d
(typically /usr/lib/ConsoleKit/run-session.d)
will be run on each event. The former directory is meant to be used
for the system administrator and the latter is meant to be used by
programs.
Only when all programs in these directories have run, ConsoleKit will
resume event processing and e.g. broadcast the event on the system
message bus. Hence, this new mechanism can be used to safely
(e.g. without race conditions) perform operations on certain resources
before programs in the desktop session are told they may use them. The
obvious example here is managing ACL's on /dev such that certain
device nodes are only available to users in local and active sessions.
The environment of the program launched is the environment that the
ConsoleKit daemon was launched with and also the following variables
(variables tagged with [*] may not be set).
CK_SESSION_ID
CK_SESSION_TYPE
CK_SESSION_SEAT_ID
CK_SESSION_USER_UID
CK_SESSION_DISPLAY_DEVICE [*]
CK_SESSION_X11_DISPLAY_DEVICE [*]
CK_SESSION_X11_DISPLAY [*]
CK_SESSION_REMOTE_HOST_NAME [*]
CK_SESSION_IS_ACTIVE
CK_SESSION_IS_LOCAL
corresponding to the properties of a Session object in question. Each
program is passed exactly one parameter that can assume one of the
following values:
- session_active_changed: is_active changed
- session_added: the session was added
- session_removed: the session was removed
As a safety hatch, there is a timeout of 15 seconds for each program;
if it hasn't exited within 15 seconds, the daemon will send it a
SIGTERM signal, and move on to the next program. The daemon is still
responsive when the program is running - this is to ensure that the
program itself can call into the org.freedesktop.ConsoleKit service.
src/Makefile.am | 6 ++
src/ck-run-programs.c | 230
+++++++++++++++++++++++++++++++++++++++++++++++++
src/ck-run-programs.h | 38 ++++++++
src/ck-seat.c | 5 +
src/ck-session.c | 39 ++++++++
5 files changed, 318 insertions(+), 0 deletions(-)
commit ad9dbd345dbec43ffc24481a0d21c261e49347fb
Author: Brian Cameron <brian.camerson@sun.com>
Date: Wed Sep 19 21:19:31 2007 -0400
don't use VT_GETSTATE when VT is unavailable
src/ck-sysdeps-solaris.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
commit 03c9196f59c849515f650e2eb1a190a10908a8ee
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Sep 19 11:13:31 2007 -0400
try to make things work for systems that don't support VT_ACTIVATE etc
configure.ac | 2 ++
src/ck-sysdeps-unix.c | 27 +++++++++++++++++++++++----
2 files changed, 25 insertions(+), 4 deletions(-)
commit 54582a7287f036bd6b65434e4b4888405972130d
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Sep 19 10:03:22 2007 -0400
add wiki to readme
README | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
commit 024fe2c942e1b3e5ddec8e829242017c9842393e
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Sep 18 11:12:54 2007 -0400
post release version bump
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit eacf90d95c91db99c5946f00c95484fb66ec1b2a
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Sep 18 11:11:38 2007 -0400
update for brown bag release
NEWS | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
commit f35dee9696d81630216e283bcd91ca491febe153
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Sep 18 01:09:04 2007 -0400
use unix-user instead of user
pam-ck-connector/pam-ck-connector.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 6b8dc7403c105dc12dbe93616321850b8f160a8e
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Sep 17 18:27:54 2007 -0400
post release version bump
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit e9c5548af759cb9968acb11e1b09dfc34fe13781
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Sep 17 18:24:11 2007 -0400
update NEWS for release
NEWS | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
commit 3708b8b25a8e48b627920eb0876203cac81eb36e
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Aug 29 15:56:06 2007 -0400
remove policy for gdm user
data/ConsoleKit.conf | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
commit 1c9456a82126f56f4bebca0e7b6671ca844db322
Author: Joe Marcus Clarke <marcus@FreeBSD.org>
Date: Wed Aug 29 10:10:17 2007 -0400
fix FreeBSD issues translating VT numbers to devices
In FreeBSD the device number is always one less than the VT number
(e.g.
VT 1 is /dev/ttyv0). Account for this. Also, fix up reading console
entries from /etc/ttys, and make sure the full TTY device name
is returned
for a given process stat.
src/ck-sysdeps-freebsd.c | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
commit b508cf9b49ecd1f4810f69e785ebf40a2e5d5677
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Aug 28 13:20:35 2007 -0400
untabify
src/ck-file-monitor-inotify.c | 2 +-
src/ck-manager.c | 16 ++++++++--------
src/ck-session.c | 8 ++++----
src/ck-sysdeps-unix.c | 6 +++---
src/main.c | 12 ++++++------
5 files changed, 22 insertions(+), 22 deletions(-)
commit 1523b599eeba119c1258e887b7df9b018ce10351
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Aug 28 11:48:11 2007 -0400
fix some compiler warnings, untabify
Based on patch from Joe Marcus Clarke
src/ck-sysdeps-freebsd.c | 188
+++++++++++++++++++---------------------------
src/ck-sysdeps-solaris.c | 8 +-
2 files changed, 81 insertions(+), 115 deletions(-)
commit 5e0f4848e5bfd325840d405582bdedf3a27b98f8
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Aug 27 16:34:45 2007 -0400
move some of the freebsd specific stuff into sysdeps
src/ck-sysdeps-freebsd.c | 37 ++++++++++++++++
src/ck-sysdeps-linux.c | 49 ++++++++++++++++++++++
src/ck-sysdeps-solaris.c | 48 +++++++++++++++++++++
src/ck-sysdeps-unix.c | 69 +++++++++++++++++++++++++++++++
src/ck-sysdeps.h | 6 +++
src/ck-vt-monitor.c | 96
++++++++----------------------------------
src/test-tty-idle-monitor.c | 14 +------
7 files changed, 229 insertions(+), 90 deletions(-)
commit 54b545beb4b7e65f852f03dd5da025d5eae7ef8f
Author: Florent Thoumie <flz@FreeBSD.org>
Date: Mon Aug 27 14:31:53 2007 +0100
Don't create rc.d/init.d directory on FreeBSD.
Move the initdir variable inside the if-block so that
it's not created on FreeBSD.
Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
data/Makefile.am | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
commit d6fa350994ac2c56644332fd5931a4a56d2f32d9
Author: Florent Thoumie <flz@FreeBSD.org>
Date: Sun Aug 26 13:25:23 2007 +0100
Disconnect init.d script on FreeBSD.
Don't install ConsoleKit script in init.d/rc.d/ as it is
unusable on FreeBSD.
Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
data/Makefile.am | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
commit a0a4451df57693a7cd4f69befd4cf17239013161
Author: Joe Marcus Clarke <marcus@shumai.marcuscom.com>
Date: Sat Aug 25 20:23:36 2007 -0400
Add support for FreeBSD
Allow this test to properly determine the current tty device.
Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
src/test-tty-idle-monitor.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
commit d643acbb50eb2cccc50df8b27bd2c08bdc405622
Author: Joe Marcus Clarke <marcus@shumai.marcuscom.com>
Date: Sat Aug 25 20:10:37 2007 -0400
Add ck-sysdeps-freebsd.c to the list of dist sources
Fix make dist by making sure ck-sysdeps-freebsd.c is available on all
platforms.
Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
src/Makefile.am | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit a2426fc2791a896c79d5eb14c2b518df7aca3dcf
Author: Florent Thoumie <flz@FreeBSD.org>
Date: Sat Aug 25 21:05:32 2007 +0100
Restore copyright.
Restore copyright in ck-sysdeps-freebsd.c since Marcus
"used a lot of the existing functions".
Submitted by: marcus
Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
src/ck-sysdeps-freebsd.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit 59d8b48dc3358057859c22588580e926aa68a3ee
Author: Florent Thoumie <flz@FreeBSD.org>
Date: Sat Aug 25 19:50:54 2007 +0100
Some more fixes, Now test-vt-monitor works correctly.
Submitted by: marcus
Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
src/ck-sysdeps-unix.c | 14 +++++++++++---
src/ck-vt-monitor.c | 35 ++++++++++++++++++++++-------------
2 files changed, 33 insertions(+), 16 deletions(-)
commit 1a16c740e0eab279eeca443c1a1c276e5e125852
Author: Florent Thoumie <flz@FreeBSD.org>
Date: Sat Aug 25 18:22:02 2007 +0100
Add FreeBSD native backend (untested)
- Add Marcus' FreeBSD backend for ConsoleKit. Compiles fine but
test-vt-monitor doesn't seem to work correctly.
- Remove TODO entry.
Submitted by: marcus
Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
TODO | 2 -
configure.ac | 8 +
src/Makefile.am | 1 +
src/ck-sysdeps-freebsd.c | 592
++++++++++++++--------------------------------
4 files changed, 182 insertions(+), 421 deletions(-)
commit a910e8cc1ad8df738a8160c4f710b04810dfe99d
Author: Florent Thoumie <flz@FreeBSD.org>
Date: Sat Aug 25 17:19:09 2007 +0100
Add a note about native FreeBSD backend in TODO.
At the moment, we rely on linprocfs being mounted, we need a
native backend on FreeBSD.
Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
TODO | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
commit 342f4d1b60850daad422bd683978a88cb6a7eed7
Author: Florent Thoumie <flz@FreeBSD.org>
Date: Sat Aug 25 17:08:20 2007 +0100
First attempt a making ConsoleKit work on FreeBSD
- Add some ifdef's to make the code compile.
- Add ck-sysdeps-freebsd.c, based on the Linux version, which
means it's using linprocfs right now.
Signed-off-by: Florent Thoumie <flz@FreeBSD.org>
src/Makefile.am | 5 +
src/ck-job.c | 1 +
src/ck-sysdeps-freebsd.c | 659
++++++++++++++++++++++++++++++++++++++++++++++
src/ck-vt-monitor.c | 16 +-
4 files changed, 679 insertions(+), 2 deletions(-)
commit f19761b0e2e6649836d3514fbd007b9365756f32
Author: Brian Cameron <brian.cameron@sun.com>
Date: Wed Aug 22 09:48:30 2007 -0400
more build fixes for solaris
src/ck-sysdeps-linux.c | 5 ++++-
src/ck-sysdeps-solaris.c | 9 +++++++--
2 files changed, 11 insertions(+), 3 deletions(-)
commit de3718f03a6e1a83c1024dad0dea5b070b1b27b4
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Aug 21 11:50:08 2007 -0400
abstract out the tty device basename stuff
src/ck-seat.c | 15 ++++++---------
src/ck-sysdeps-linux.c | 35 +++++++++++++++++++++++++++++++++++
src/ck-sysdeps-solaris.c | 35 +++++++++++++++++++++++++++++++++++
src/ck-sysdeps.h | 8 ++++----
4 files changed, 80 insertions(+), 13 deletions(-)
commit 0145691112f14352ef15b49c1ea3079a8e80f6e8
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Aug 21 11:27:04 2007 -0400
more solaris support
based on patch from Brian Cameron.
src/ck-sysdeps-linux.c | 14 ++++++
src/ck-sysdeps-solaris.c | 109
+++++++++++++++++++++++++++++++++++-----------
src/ck-sysdeps-unix.c | 40 ++++++++++++-----
src/ck-sysdeps.h | 2 +
src/ck-vt-monitor.c | 14 +++---
5 files changed, 136 insertions(+), 43 deletions(-)
commit 3e6bbcaea6d441956c9c1173d7586bd346a8c77b
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Aug 17 13:09:34 2007 -0400
display the current vt
src/test-vt-monitor.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
commit 3d907714c526c4c685bb8c5dc13f91df22331cdb
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Aug 17 13:00:16 2007 -0400
add test-vt-monitor
src/.gitignore | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit 3423ce3039033e8bf54860a2b955fdf8c1f21be7
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Aug 17 12:59:41 2007 -0400
add a vt monitor test, move getfd to sysdeps, add a check for the
root user
src/Makefile.am | 14 +++++-
src/ck-sysdeps-unix.c | 114
++++++++++++++++++++++++++++++++++++++++++-
src/ck-sysdeps.h | 11 ++++
src/ck-vt-monitor.c | 5 +-
src/getfd.c | 97 ------------------------------------
src/main.c | 6 ++
src/test-tty-idle-monitor.c | 12 +----
src/test-vt-monitor.c | 83 +++++++++++++++++++++++++++++++
8 files changed, 230 insertions(+), 112 deletions(-)
commit bec4b4163ae65fa271845da6b748456346987c26
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Aug 17 11:54:21 2007 -0400
oops add docs for new seat interfaces
doc/spec/ck-seat.xml | 41 +++++++++++++++++++++++++++++++++++++++++
doc/xml/ref-ck-seat.xml | 33 +++++++++++++++++++++++----------
2 files changed, 64 insertions(+), 10 deletions(-)
commit c0c74f8064392598cd29401142804fcc241841ed
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Aug 17 10:52:19 2007 -0400
a few fixes for peer cred stuff
src/ck-sysdeps-unix.c | 26 ++++++++++++++++++++------
tools/ck-get-x11-display-device.c | 13 ++++++-------
tools/ck-get-x11-server-pid.c | 4 +++-
3 files changed, 29 insertions(+), 14 deletions(-)
commit 577099aea3ed75c1298d7a4cfa32784a1800bb09
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Aug 16 23:09:44 2007 -0400
move peercred stuff into sysdeps. add solaris support.
configure.ac | 2 +
src/Makefile.am | 1 +
src/ck-sysdeps-unix.c | 84
+++++++++++++++++++++++++++++++++++++
src/ck-sysdeps.h | 7 +++
tools/ck-get-x11-display-device.c | 34 ++-------------
tools/ck-get-x11-server-pid.c | 31 ++++----------
6 files changed, 107 insertions(+), 52 deletions(-)
commit fcb0f32632f74950c361a0a23128ebca05efdca0
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Aug 16 22:29:18 2007 -0400
move all proc stuff into ck-sysdeps
src/Makefile.am | 23 +++++-----
src/ck-manager.c | 52
++++++++++++-----------
src/{proc-linux.c => ck-sysdeps-linux.c} | 60
+++++++++++++-------------
src/{proc-solaris.c => ck-sysdeps-solaris.c} | 40 +++++++++---------
src/ck-sysdeps.h | 49 +++++++++++++++++++++
src/proc.h | 48 --------------------
tools/Makefile.am | 6 +-
tools/ck-collect-session-info.c | 36 ++++++++--------
tools/ck-get-x11-display-device.c | 18 ++++----
9 files changed, 167 insertions(+), 165 deletions(-)
commit e56a95f64c9c9f57adebf6cb3e6c88790cec40e4
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Aug 14 17:03:00 2007 -0400
move tools out of linux subdirectory since they apparently work
on solaris
tools/.gitignore | 3 ++
tools/Makefile.am | 36
+++++++++++++++++++++++++
tools/{linux => }/ck-collect-session-info.c | 0
tools/{linux => }/ck-get-x11-display-device.c | 0
tools/{linux => }/ck-get-x11-server-pid.c | 0
tools/linux/Makefile.am | 32
----------------------
6 files changed, 39 insertions(+), 32 deletions(-)
commit dc97e6caabc9932922d26f3400424626462f5ad2
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Aug 14 16:55:24 2007 -0400
make a lt library for proc stuff
src/Makefile.am | 39 +++++++++++++++++++++++++--------------
tools/linux/Makefile.am | 7 +++----
2 files changed, 28 insertions(+), 18 deletions(-)
commit e6cf0e022d391154baed5ec30e857baffe52b437
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Aug 14 12:30:34 2007 -0400
remove example device from seat config
data/00-primary.seat | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit d4033604529b64156d5dd0f03fbe733ec7ae8246
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Aug 14 12:12:38 2007 -0400
make sure the device is a console and add some instructions
src/test-tty-idle-monitor.c | 44
+++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
commit 396363e70765af215f7302964ac9543305733a2b
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Aug 14 11:59:37 2007 -0400
don't bail if /proc/self/fd/0 is not a link
src/test-tty-idle-monitor.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
commit 383ea823871bf3768e85d1a3ca061e775c6aedf1
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Aug 14 11:50:54 2007 -0400
add some solaris support
Based on a patch from Brian Cameron.
configure.ac | 2 +
src/Makefile.am | 9 ++
src/getfd.c | 20 +++-
src/proc-solaris.c | 324
++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 352 insertions(+), 3 deletions(-)
commit e054c0f8b86f27f94d9316bac065a94081f4be32
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Aug 8 16:07:01 2007 -0400
print out tools libs after configure
configure.ac | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit 03590bfe7cc0346c9a36ee01fd3737aa009f0273
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Aug 7 11:21:47 2007 -0400
don't use PERROR if not available
src/ck-log.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
commit 90e87a110c648cb93c2bde0ace9626d5ce58167a
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Aug 7 11:21:31 2007 -0400
don't use stderr or stdout as variable names
src/ck-job.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
commit 488520e5c0d7d3684f7c91f11da52e9ef08d42c9
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Aug 1 10:44:21 2007 -0400
change user to unix-user
libck-connector/test-connector.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit d7d77af48ae9dbacde77d9337fe3a202d23467a6
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Aug 1 10:42:44 2007 -0400
use unix-user instead of user
libck-connector/ck-connector.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
commit 289fff6aaaa206572efa768c4063111582d79f9d
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Jul 20 17:42:01 2007 -0400
Add preliminary support for seats with devices
data/00-primary.seat | 5 +
data/Makefile.am | 4 +
src/ck-manager.c | 54 ++++++++++++-
src/ck-seat.c | 219
++++++++++++++++++++++++++++++++++++++++++++++++++
src/ck-seat.h | 36 +++++++--
src/ck-seat.xml | 9 ++
6 files changed, 319 insertions(+), 8 deletions(-)
commit f6027221567fcb9ead1823e2da4eb9783f2db9ce
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Jul 20 17:41:32 2007 -0400
Add --display option to tool.
tools/linux/ck-get-x11-display-device.c | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 deletions(-)
commit a9aa00ff0fea79452a60a2448dd1f2714918884a
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Jul 18 17:24:00 2007 -0400
Add new helper for getting tty from DISPLAY
tools/linux/Makefile.am | 11 +++
tools/linux/ck-get-x11-display-device.c | 138
+++++++++++++++++++++++++++++++
2 files changed, 149 insertions(+), 0 deletions(-)
commit 17ff9ceb88e0b7f6dc5a7e6eac5ff98cb4a5cabe
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue May 15 11:15:12 2007 -0400
a few fixes for getfd suggested by Lennart
I am currently investigating how to best integrate PulseAudio with
ConsoleKit/PolicyKit. While doing that I had a look on your code, and
found a few issues in getfd.c I'd like to report, before I forget
them. I couldn't find any bugzilla with at consolekit project (neither
fedora, nor fdo, nor gnome?) hence I am mailing you in person.
In getfd.c in open_a_console() a close() is missing if is_a_console is
missing.
The open() in open_a_console() should probably use O_NOCTTY. Otherwise
C-c on the console might end up in a SIGINT to your daemon process!
Also I'd add an isatty() check to is_a_console(), to makes sure that
you're actually talking to a TTY before you issue KDGKBTYPE on
it. ioctl()s are unfortunately not unique, hence i'd recommend
that check.
That's it,
Lennart
src/getfd.c | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
commit fe29cc406719428bcc73d980299e4639a9bb37f1
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Apr 10 16:03:19 2007 -0400
bump version
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 2626a4405d19da40b98d526668bee7c92072e43b
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Apr 10 16:01:15 2007 -0400
update for release
NEWS | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
commit c6cd8d7c66b2bd39edf7ca70948982a553128282
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Apr 10 15:54:31 2007 -0400
disable static libs
configure.ac | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit e0244a8f6dd0b7f8ebecc6bec52c013ce5286279
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Apr 5 15:21:14 2007 -0400
use inotify to detect activity on tty when possible
.gitignore | 3 +-
configure.ac | 26 ++-
doc/.gitignore | 1 +
src/.gitignore | 1 +
src/Makefile.am | 32 ++
src/ck-file-monitor-dummy.c | 118 ++++++++
src/ck-file-monitor-inotify.c | 669
+++++++++++++++++++++++++++++++++++++++++
src/ck-file-monitor.h | 84 +++++
src/ck-session.c | 82 ++----
src/ck-tty-idle-monitor.c | 389 ++++++++++++++++++++++++
src/ck-tty-idle-monitor.h | 71 +++++
src/test-tty-idle-monitor.c | 82 +++++
12 files changed, 1496 insertions(+), 62 deletions(-)
commit 33dcd02c399e3255a7a64c1e90b258d79c14f2c4
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Apr 4 12:06:59 2007 -0400
fix typos
pam-ck-connector/pam_ck_connector.8 | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit c012fdf98a19e9e3d67a64ed308943a04c355dc8
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Apr 4 12:04:16 2007 -0400
add support for CKCON_X11_DISPLAY_DEVICE environment variable
In order to set the x11-display-device parameter on the new
session.
pam-ck-connector/pam-ck-connector.c | 13 +++++++++++++
pam-ck-connector/pam_ck_connector.8 | 19 ++++++++++---------
2 files changed, 23 insertions(+), 9 deletions(-)
commit 42f6afb560859bf0dab898ae4c8f6d23070ef268
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Apr 3 14:48:36 2007 -0400
make sure no values are NULL
pam-ck-connector/pam-ck-connector.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
commit bf9a5070a715f129e1182af149a46e55529edb61
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Apr 3 14:38:33 2007 -0400
check for empty string as well as null values
pam-ck-connector/pam-ck-connector.c | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
commit 8b1733abb942b4356485b4afcf1dc3bf04d1fedc
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Apr 3 12:25:41 2007 -0400
add some input validation
src/proc-linux.c | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
commit f073826f58541cbbe2b805f200a9d245d76c634c
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Apr 3 12:25:18 2007 -0400
daemonize a little earlier
src/main.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
commit 80dc652115e275a95b05bb6809825cc324d9475a
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Apr 3 11:42:43 2007 -0400
add a glib message to syslog handler
Also add ability to toggle debugging when SIGUSR1 is
received.
src/Makefile.am | 4 +-
src/ck-debug.c | 153 ---------------------------------------
src/ck-debug.h | 72 -------------------
src/ck-job.c | 21 +++---
src/ck-log.c | 197
+++++++++++++++++++++++++++++++++++++++++++++++++++
src/ck-log.h | 41 +++++++++++
src/ck-manager.c | 41 +++++------
src/ck-seat.c | 21 +++---
src/ck-session.c | 31 ++++----
src/ck-vt-monitor.c | 30 +++-----
src/main.c | 66 +++++++++++++++--
11 files changed, 366 insertions(+), 311 deletions(-)
commit 02b7dac1de29b7e323d9457f14b639582d0a2e04
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Apr 3 11:40:47 2007 -0400
bump the ac_prereq and use the docdir var
configure.ac | 16 +---------------
doc/Makefile.am | 2 +-
2 files changed, 2 insertions(+), 16 deletions(-)
commit b5c2e362c3ae4c932f4acdba13e53d80f63b1777
Author: David Zeuthen <davidz@redhat.com>
Date: Mon Apr 2 18:38:51 2007 -0400
daemonize properly
src/main.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
commit b57d5c11612dbb896c53d65c01104bae586f6e17
Author: Michael Biebl <mbiebl@gmail.com>
Date: Mon Apr 2 16:16:16 2007 -0400
autoconf fixes, separate pamlibdir variable, path expansion at
make time
The attached patch does the following:
- Use a separate $pam-module-dir variable for the pam module
- Instead of defining a custom $slibdir variable, just use the
standard $libdir variable specified by autoconf
- Use the standard autoconf $docdir variable (Add AC_PREREQ(2.59)
for that).
- Drop AS_AC_EXPAND macro and remove AC_DEFINE_UNQUOTED for dir
variables.
+ Build the init script at make time using sed
+ Use defines in src/Makefile.am to pass the variables to gcc at
make time
- Consistently use AC_HELP_STRING everywhere
- Remove/Replace deprecated macros:
+ AM_INIT_AUTOMAKE takes the package name and version number
from AC_INIT
+ AM_CONFIG_HEADER -> AC_CONFIG_HEADERS
+ AC_OUTPUT -> AC_CONFIG_FILES
Patch is tested and make distcheck works.
acinclude.m4 | 44 ----------
configure.ac | 152
++++++++++++++++++------------------
data/ConsoleKit.in | 10 +-
data/Makefile.am | 13 +++
libck-connector/Makefile.am | 3 +-
libck-connector/ck-connector.pc.in | 2 +-
pam-ck-connector/Makefile.am | 3 +-
src/Makefile.am | 1 +
8 files changed, 99 insertions(+), 129 deletions(-)
commit 86740ea242d0b26758e8a8c43904a0fc88a195f6
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Apr 2 15:36:30 2007 -0400
add unix-user to parse list
Oops.
src/ck-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 41c329309a5c78d31495f97b2f4324a462c60568
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Apr 2 14:00:37 2007 -0400
add missing prefix and exec_prefix
Apparently this is required.
libck-connector/ck-connector.pc.in | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
commit 5f3b3a7aec1c2ef81dfe28d6167049ef82e81860
Author: Doug Goldstein <cardoe@gentoo.org>
Date: Fri Mar 30 16:59:21 2007 -0400
make pam module install into $slibdir
Basically the path for the pam module is hardcoded to /lib/security
which isn't right. Attached is a patch that uses the value of slibdir
for /lib/.
pam-ck-connector/Makefile.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit a2b51f00af2143a90138c6ce1df1e7e9b4ec8afa
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Mar 26 14:39:44 2007 -0400
use xlib directly instead of via gdk
configure.ac | 5 ++-
tools/linux/ck-get-x11-server-pid.c | 39
++++++++++++++++++++++++++++------
2 files changed, 35 insertions(+), 9 deletions(-)
commit 4c365a8e28adafd6619ada97d4239e9e6df429ab
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Mar 19 16:35:55 2007 -0400
add CanActivateSessions to Seat interface
And associated documentation and added to test-fus.
doc/spec/ck-seat.xml | 12 ++++++++++++
doc/xml/ck-design.xml | 9 +++++++++
doc/xml/ref-ck-seat.xml | 12 +++++++-----
src/ck-seat.c | 14 ++++++++++++++
src/ck-seat.h | 32 ++++++++++++++++----------------
src/ck-seat.xml | 3 +++
src/test-fus | 6 ++++++
7 files changed, 67 insertions(+), 21 deletions(-)
commit c40a87c622ac1543dc2d9cdccc651e33affadcfa
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Mar 15 14:04:05 2007 -0400
fix missed pam_syslog change
Also make the configure checks simpler.
configure.ac | 5 ++---
pam-ck-connector/pam-ck-connector.c | 6 +++---
2 files changed, 5 insertions(+), 6 deletions(-)
commit 4a947eddfad4f384bb02c8e4771a59a7ad01cd8b
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Mar 15 12:55:15 2007 -0400
fix building pam module on debian systems
Only include what is available. Use a alternative to pam_syslog
if it isn't available.
configure.ac | 3 +
pam-ck-connector/pam-ck-connector.c | 101
++++++++++++++++++++++++++++++-----
2 files changed, 90 insertions(+), 14 deletions(-)
commit 54ad2d581ce690060a29fa8a4b94bf5dddbafc87
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Mar 15 10:05:37 2007 -0400
more typos in docs
doc/xml/ck-design.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit ac2061bfcbf5c38b6f82b307479064cd73274a9f
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Mar 15 01:48:34 2007 -0400
typo
doc/xml/ck-terms.xml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 2f434135af56d627a887c3cdc24020c4d9ecbde4
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Mar 14 23:35:58 2007 -0400
bump version
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit fee1f37461cd1e0abc479f263ecfd3e3570daa53
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Mar 14 23:33:51 2007 -0400
update for release
NEWS | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
commit e8fbb76428bbaae2525347cddda8a2f526970451
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Mar 14 23:21:33 2007 -0400
bump the version arbitrarily
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit a6f9d78d526892da92fdeef9bacd70ea6271b038
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Mar 14 23:21:08 2007 -0400
update todo
TODO | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 2e415f120e7652da842632cc822faa9bb16294f6
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Mar 14 23:18:13 2007 -0400
add some more docs
doc/xml/ck-design.xml | 166
+++++++++++++++++++++++++++++++++++++++++++
doc/xml/ck-introduction.xml | 2 +
doc/xml/ck-terms.xml | 49 ++++++++++++-
3 files changed, 213 insertions(+), 4 deletions(-)
commit 314b18ca8045eda3c48c0e7a5f2c0e26635ce5b8
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Mar 14 09:22:20 2007 -0400
add missing instead attribute
doc/dbus-introspect-docs.dtd | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit 2f4b6ef24431fc9c4997e535f8b5e126eb5ae3db
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Mar 14 08:46:08 2007 -0400
don't include the generated html in git
doc/ConsoleKit.html | 317
---------------------------------------------------
doc/Makefile.am | 1 -
2 files changed, 0 insertions(+), 318 deletions(-)
commit f1ad1ddf9cd5898b4bca3875a698a9628313eb19
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Mar 14 08:45:44 2007 -0400
dont' mark the user properties to be set in the constructor
Now that we have two properties (one deprecated) that refer
to the same thing we can't require that they are both set
during the constructor. Furthermore, we can't require
that either of them are set because we don't know which
will be used.
src/ck-session.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit c01153022b0fa850bd10503141ff081749f01d4d
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 13 17:29:46 2007 -0400
missed a namespace on the permission tag
doc/ConsoleKit.html | 132
++++++++++++++++++++++----------------------
doc/spec/ck-session.xml | 4 +-
doc/xml/ref-ck-session.xml | 4 +-
3 files changed, 70 insertions(+), 70 deletions(-)
commit 4a531bc467c9a142cb2d05792e6f9e9330c199ff
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 13 15:20:37 2007 -0400
updated doc dtd
doc/ConsoleKit.html | 128
+++++++++++++++++++++---------------------
doc/dbus-introspect-docs.dtd | 2 +-
2 files changed, 65 insertions(+), 65 deletions(-)
commit 608080a2f755254a590b4d052451461294fbcee4
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 13 14:34:32 2007 -0400
add a new configure option --with-slibdir to use for connector
Turns out that just using libdir breaks the .pc file install.
configure.ac | 15 +++++++++++++++
libck-connector/Makefile.am | 3 ++-
libck-connector/ck-connector.pc.in | 2 +-
3 files changed, 18 insertions(+), 2 deletions(-)
commit 0f1d6b3b234a1f8d8c6b9dff38388ab58f695b64
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 13 13:50:58 2007 -0400
deprecate the user properties and add unix-user properties
Also added deprecated notes to the docs. New code should
be using GetUnixUser instead of GetUser etc.
doc/ConsoleKit.html | 141
+++++++++++++++++++--------------
doc/dbus-introspect-docs.dtd | 2 +-
doc/spec/ck-manager.xml | 22 +++++
doc/spec/ck-session.xml | 21 +++++
doc/tools/spec-to-docbook.xsl | 75 +++++++++++++++--
doc/xml/ref-ck-manager.xml | 15 +++-
doc/xml/ref-ck-session.xml | 24 +++++-
src/ck-manager.c | 25 ++++--
src/ck-manager.h | 4 +
src/ck-manager.xml | 5 +
src/ck-session.c | 44 ++++++++--
src/ck-session.h | 8 ++-
src/ck-session.xml | 4 +
tools/linux/ck-collect-session-info.c | 2 +-
tools/list-sessions.c | 2 +-
15 files changed, 295 insertions(+), 99 deletions(-)
commit 921b5e02edf59117b64385edbe4d191819d90abd
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 13 12:11:04 2007 -0400
add more doc stubs
doc/ConsoleKit.html | 122
+++++++++++++------------
doc/ConsoleKit.xml.in | 4 +
doc/Makefile.am | 2 +
doc/xml/ck-design.xml | 5 +
doc/xml/ck-introduction.xml | 6 +
doc/xml/{ck-introduction.xml => ck-terms.xml} | 14 ++-
6 files changed, 92 insertions(+), 61 deletions(-)
commit 4a639d92a6f1a5dd8f59d57ade37d4cff420b66a
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 13 11:41:31 2007 -0400
various leak fixes
src/ck-manager.c | 38 +++++++++++++++++++++++++++++++++++---
src/ck-seat.c | 15 +++++++++++----
src/ck-session.c | 32 +++++++++++++++++++-------------
src/main.c | 4 +++-
4 files changed, 68 insertions(+), 21 deletions(-)
commit 1e7af7e9c648fb461e0d36d037d2920519159525
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 13 10:05:31 2007 -0400
convert to utf8 and xhtml output
Seems to fix some problems with invalid characters showing up.
doc/ConsoleKit.html | 122
+++++++++++++++++++++--------------------
doc/Makefile.am | 2 +-
doc/tools/spec-to-docbook.xsl | 2 +-
3 files changed, 64 insertions(+), 62 deletions(-)
commit 8b42a4928a0a266c3b3ae6bb13997764bc7f6405
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 13 03:42:04 2007 -0400
add the last bits of spec framework
The spec is the introspection format extended with
docs. There are tools to build docbook and strip
the docs to make dbus introspect xml.
doc/ConsoleKit.html | 336
+++++++++++++----
doc/ConsoleKit.xml.in | 9 +-
doc/Makefile.am | 8 +-
doc/dbus-introspect-docs.dtd | 31 ++
doc/docbook.css | 5 +
doc/ref-ck-manager.xml | 181 ---------
doc/ref-ck-seat.xml | 111 ------
doc/ref-ck-session.xml | 350
-----------------
doc/spec/ck-manager.xml | 286 ++++++++++++++
doc/spec/ck-seat.xml | 110 ++++++
doc/spec/ck-session.xml | 401
++++++++++++++++++++
doc/{docize-dbus-xml.sh => tools/spec-strip-docs} | 4 +-
doc/tools/spec-strip-docs.xsl | 36 ++
doc/{docize-dbus-xml.sh => tools/spec-to-docbook} | 2 +-
.../spec-to-docbook.xsl} | 148 +++++++-
doc/tools/update-from-spec | 25 ++
doc/{ => xml}/ck-introduction.xml | 3 -
doc/xml/ref-ck-manager.xml | 174 +++++++++
doc/xml/ref-ck-seat.xml | 72 ++++
doc/xml/ref-ck-session.xml | 240 ++++++++++++
src/ck-manager.xml | 16 +-
src/ck-seat.xml | 14 +-
src/ck-session.xml | 11 +-
23 files changed, 1800 insertions(+), 773 deletions(-)
commit 4595ab3d4953d6257a6fedfe5b294df67ff3581f
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 13 03:39:52 2007 -0400
install the connector into libdir by default
If building the PAM module then it probably should be going
into /lib. However, hardcoding /lib makes it very difficult
to build as non-root, breaks make distcheck, and probably
isn't correct for 64 bit systems. If you are a distro you
should probably configure using --libdir=/lib.
libck-connector/Makefile.am | 3 +--
libck-connector/ck-connector.pc.in | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
commit 29437f4aa9bd1bab54bde41cb1f6301803a2632e
Author: William Jon McCann <mccann@jhu.edu>
Date: Sat Mar 10 18:02:29 2007 -0500
regenerate docs
doc/ConsoleKit.html | 72
++++++++++++++++++++++++------------------------
doc/ref-ck-session.xml | 36 ++++++++++++------------
2 files changed, 54 insertions(+), 54 deletions(-)
commit 6ce9a74f69f611bc5aeeb57a4bf9efea19774938
Author: William Jon McCann <mccann@jhu.edu>
Date: Sat Mar 10 17:05:06 2007 -0500
add the generated doc html
doc/.gitignore | 1 -
doc/ConsoleKit.html | 96
+++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 96 insertions(+), 1 deletions(-)
commit 50ff6eda31c06cea4e3b8010d114e66cfdb3f6e6
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Mar 9 13:51:21 2007 -0500
give root permission to use the property interface
data/ConsoleKit.conf | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
commit 093539956ac0a5092a5fdc39f8b27475071032c4
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Mar 9 13:50:10 2007 -0500
fix the user prop type
src/ck-session.xml | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
commit c8dbc4b6a38b99ed192f5ed2f73f57014a49d50a
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Mar 9 12:36:09 2007 -0500
add a few more parameters to session idl
doc/ref-ck-session.xml | 90
+++++++++++++++++++++++++++++++++++++++++++++++-
src/ck-session.xml | 8 ++++
2 files changed, 97 insertions(+), 1 deletions(-)
commit d5061bf16725bc711f7ddcff02e77a94014107f5
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Mar 9 12:35:30 2007 -0500
add uuid to cookie
src/ck-manager.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
commit 1d72374535de222cb816c74506555c71af10d429
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Mar 9 11:40:59 2007 -0500
add a tool to autogenerate dbus object ref docs
I hope I didn't reinvent a wheel but it seems to
work much better than hand coding these refentries.
Still need to add support for comments and actual
descriptions ala gtk-doc.
doc/ConsoleKit.xml.in | 10 ++-
doc/Makefile.am | 6 +-
doc/ck-dbus-manager.xml | 52 ---------
doc/ck-dbus-seat.xml | 39 -------
doc/ck-dbus-session.xml | 55 ----------
doc/docbook-dbus.xsl | 261
++++++++++++++++++++++++++++++++++++++++++++++
doc/docize-dbus-xml.sh | 34 ++++++
doc/ref-ck-manager.xml | 181 ++++++++++++++++++++++++++++++++
doc/ref-ck-seat.xml | 111 ++++++++++++++++++++
doc/ref-ck-session.xml | 262
+++++++++++++++++++++++++++++++++++++++++++++++
src/ck-manager.xml | 12 ++-
src/ck-seat.xml | 12 ++-
src/ck-session.xml | 9 ++-
13 files changed, 884 insertions(+), 160 deletions(-)
commit 15ad40c8d8abd86a4b83e445031fd467406b45d8
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Mar 8 22:09:41 2007 -0500
tweak the css for the docs
doc/ConsoleKit.xml.in | 4 --
doc/docbook.css | 77
++++++++++++++++++++++++++++++++++++++++++-------
2 files changed, 66 insertions(+), 15 deletions(-)
commit 54246537dfdcb89ee34dfbaa8b909b94ae2845b9
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Mar 8 21:24:25 2007 -0500
update all .gitignore files
.gitignore | 1 +
{tools => libck-connector}/.gitignore | 3 ++-
{tools => pam-ck-connector}/.gitignore | 2 +-
tools/.gitignore | 2 +-
tools/linux/.gitignore | 9 +++++++++
5 files changed, 14 insertions(+), 3 deletions(-)
commit 1702970a3ea3de88f04623f69a3ab5260f77d2c5
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Mar 8 21:16:40 2007 -0500
add a stub for docbook documentation
Makefile.am | 1 +
configure.ac | 102
+++++++++++++++++++++++++++++++++--------------
doc/.gitignore | 6 +++
doc/ConsoleKit.xml.in | 69 +++++++++++++++++++++++++++++++
doc/Makefile.am | 37 +++++++++++++++++
doc/ck-dbus-manager.xml | 52 ++++++++++++++++++++++++
doc/ck-dbus-seat.xml | 39 ++++++++++++++++++
doc/ck-dbus-session.xml | 55 +++++++++++++++++++++++++
doc/ck-introduction.xml | 23 +++++++++++
doc/config.xsl | 6 +++
doc/docbook.css | 18 ++++++++
11 files changed, 378 insertions(+), 30 deletions(-)
commit ef7ee407bc58ea24db828cad9e1e7d628e322067
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Mar 8 21:06:55 2007 -0500
prevent the use of the glib properties interface
We don't want anyone to be able to directly modify properties.
Also make these policies mandatory.
data/ConsoleKit.conf | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
commit f4173a08a83db8879ae9c82356f7a9702cb4f883
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Mar 7 14:53:01 2007 -0500
update todo
TODO | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
commit ef83e4007f375db0ee8f240d2bf292331a5a76cb
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 6 18:46:25 2007 -0500
remove debug noise
src/ck-session.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 701349f1ad564242c143cab6773dde0de6396db8
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 6 18:32:49 2007 -0500
add very basic idle monitoring of text sessions and rework parameter
parsing
Rework the parameter parsing so it is a bit more robust and so that
parameters can get passed to the constructor.
src/ck-session.c | 223
+++++++++++++++++++++++++++++----
src/test-open-session-with-parameters | 5 +-
2 files changed, 205 insertions(+), 23 deletions(-)
commit dc5e9585215f34ec78b68fbb6da990a90d8f3a1b
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 6 16:07:24 2007 -0500
use paths.h if available
configure.ac | 2 ++
pam-ck-connector/pam-ck-connector.c | 14 ++++++++++++--
pam-ck-connector/test-pam.c | 8 +++++++-
src/ck-seat.c | 11 +++++++++--
src/getfd.c | 28 +++++++++++++++++++++-------
src/proc-linux.c | 10 +++++++---
6 files changed, 58 insertions(+), 15 deletions(-)
commit ce4ee7b54d40faf13e005285e5b85a061f21e256
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 6 15:36:56 2007 -0500
add some items in a TODO file
TODO | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
commit 96d209ea26485c6b6f23a469ee1d2db672e6697a
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 6 15:01:07 2007 -0500
exit if we can't acquire name at startup and fix a glib warning
src/main.c | 41 ++++++++++++++++++++++++++++++++---------
1 files changed, 32 insertions(+), 9 deletions(-)
commit 98ea3604c92a4c0317d2f9626f097bc384caf70a
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 6 02:32:10 2007 -0500
add is-local back to the pam module
pam-ck-connector/pam-ck-connector.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
commit 699923e665a4606a1b3f6822e4e4917f86a2a713
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 6 02:31:45 2007 -0500
check for empty strings as well as null
src/ck-manager.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
commit d9ca86ae5acb8a4a56e875c9ad0ed617f50abf65
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 6 00:25:06 2007 -0500
use a slightly more sophisticated rule for adding sessions to
static seat
src/ck-manager.c | 37
++++++++++++++++++++++++++++----
src/test-open-session-with-parameters | 1 +
2 files changed, 33 insertions(+), 5 deletions(-)
commit a3cb617b1fd3be5199c0dfc08aee0af4b04d1a8b
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Mar 6 00:24:02 2007 -0500
allow for the possibility of matching multiple sessions for device
In the event that there is more than one session that matches
a particular tty when the VT changes we use the following rule:
1. take the oldest session where display-device == active VT device
2. take the oldest session where x11-display-device == active
VT device
src/ck-seat.c | 160
+++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 145 insertions(+), 15 deletions(-)
commit 08436b041d6b334a5754266b11385941a71d3f81
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Mar 5 21:56:52 2007 -0500
add x11-display-device to parse table
src/ck-manager.c | 13 +++++++------
src/test-open-session | 2 ++
2 files changed, 9 insertions(+), 6 deletions(-)
commit 5cc0ba8ec8c988d0068b07e4f67839d42b357537
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Mar 5 20:36:59 2007 -0500
try to parse the real meaning of PAM_TTY
pam-ck-connector/pam-ck-connector.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
commit 2e38a7026491595e6837fa8c02e077584fc71b71
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Mar 5 19:14:14 2007 -0500
fix the example code
libck-connector/ck-connector.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
commit a9a48c07142025841a69da6fc30c6a1fbd29727a
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Mar 5 19:10:51 2007 -0500
use with_parameters and add remote-host-name if available
pam-ck-connector/pam-ck-connector.c | 49
+++++++++++++++++++++++++++-------
1 files changed, 39 insertions(+), 10 deletions(-)
commit 0293d43731d125b825fa8962976b527bf46b65d6
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Mar 5 19:10:02 2007 -0500
add a with_parameters function to connector
libck-connector/ck-connector.c | 395
+++++++++++++++++++++-----------------
libck-connector/ck-connector.h | 36 ++--
libck-connector/test-connector.c | 18 ++-
3 files changed, 255 insertions(+), 194 deletions(-)
commit d588a897fef3af61a7368226986b384fce2524e7
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Mar 5 19:08:15 2007 -0500
rename host-name in one more place
src/ck-manager.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
commit 7dfb9732b27778722214531d0c17b7e50e8a2fe1
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Mar 5 15:24:56 2007 -0500
rename host-name to remote-host-name to make it more intuitive
libck-connector/ck-connector.c | 8 -----
src/ck-session.c | 49
++++++++++++++++++---------------
src/ck-session.h | 6 ++--
src/ck-session.xml | 4 +-
tools/linux/ck-collect-session-info.c | 12 ++++----
tools/list-sessions.c | 12 ++++----
6 files changed, 44 insertions(+), 47 deletions(-)
commit ed0e87a5f66d88d6f388229e1bf71632bb0f1308
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Mar 5 14:49:47 2007 -0500
add x11-display-device to ck-list-sessions
tools/list-sessions.c | 28 ++++++++++++++++++++++------
1 files changed, 22 insertions(+), 6 deletions(-)
commit 4749b0ecb6241517685a2a809695a85bd9f93432
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Mar 5 14:39:07 2007 -0500
add two more proc sysdep functions
src/proc-linux.c | 53
+++++++++++++++++++++++++++++++++++++++++++++++++++++
src/proc.h | 4 ++++
2 files changed, 57 insertions(+), 0 deletions(-)
commit 4b245b3113480d495440e1b7d32eb4dc6d564c8c
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Mar 5 12:12:59 2007 -0500
add x11-display-device attribute
In certain cases it is necessary to distinguish the display-device
(tty of session leader) from the x11-display-device (tty of xorg
process).
src/ck-session.c | 60 ++++++++++--
src/ck-session.h | 172
+++++++++++++++++----------------
src/ck-session.xml | 3 +
tools/linux/ck-collect-session-info.c | 29 ++++--
4 files changed, 164 insertions(+), 100 deletions(-)
commit 67fa39aacf65117a85533035a71ee09b184003dc
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Mar 5 11:18:32 2007 -0500
use an async job to collect session info
Use an async helper job to collect session info for the
OpenSession() method.
src/Makefile.am | 2 +
src/ck-job.c | 392
+++++++++++++++++++++++++++++++++
src/ck-job.h | 76 +++++++
src/ck-manager.c | 278 +++++++++++++++++-------
tools/linux/ck-collect-session-info.c | 11 +-
5 files changed, 681 insertions(+), 78 deletions(-)
commit f67761a042ff8b29d7689a043a53110d0bbbf6e9
Author: David Zeuthen <david@fubar.dk>
Date: Mon Mar 5 10:26:10 2007 -0500
allow uid 0 to use the pam module
So in Fedora's Rawhide /bin/login is now using libck-connector via the
PAM module and CK will track such sessions. However, it doesn't work
when root logs in and I think that's a bug. Attached patch should
fix it
(is already in Rawhide). Thanks.
David
libck-connector/ck-connector.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
commit 4f0911bf685f51b51d05a69a40d3950debb995a0
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Mar 2 17:51:37 2007 -0500
add linux backends for collecting session information
These tools will be used to generate and verify the parameters
used to open a session.
configure.ac | 5 +
src/proc-linux.c | 57 +++++
src/proc.h | 20 +-
tools/linux/Makefile.am | 23 ++-
tools/linux/ck-collect-session-info.c | 390
+++++++++++++++++++++++++++++++++
tools/linux/ck-get-x11-server-pid.c | 75 +++++++
6 files changed, 560 insertions(+), 10 deletions(-)
commit 75ad4b862611bd6a39bda06db3db4c9737657dad
Author: David Zeuthen <davidz@redhat.com>
Date: Thu Mar 1 15:23:14 2007 -0500
dist the manual page for the PAM module
pam-ck-connector/Makefile.am | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
commit 1d1b98cd17764be77b1aee79efae8e89ce7faa04
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Mar 1 14:24:27 2007 -0500
add a test program for the PAM module
Basically this is a mini login. It authenticates, opens a session,
sleeps 20 seconds, and then closes the session.
configure.ac | 4 +
pam-ck-connector/Makefile.am | 38 +++++++++-
pam-ck-connector/pam-ck-connector.c | 2 +-
pam-ck-connector/test-pam.c | 135
+++++++++++++++++++++++++++++++++++
4 files changed, 174 insertions(+), 5 deletions(-)
commit e37a78dfc5abcb3b02cb5debaa24122fa9b949c4
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Mar 1 13:08:17 2007 -0500
fix some typos
pam-ck-connector/pam-ck-connector.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
commit 6eae9c8ba66c9a7469a2cdea88c16048fdbe2638
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Feb 28 14:20:40 2007 -0500
add a test program for the connector
Add a simple test app for the connector. Adapted from
the example David put in the header.
libck-connector/Makefile.am | 59 ++++++++++++++++++++++----
libck-connector/test-connector.c | 85
++++++++++++++++++++++++++++++++++++++
2 files changed, 135 insertions(+), 9 deletions(-)
commit 1905aa0cb4a680308949e366c21803bcf542d9e1
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Feb 28 14:19:44 2007 -0500
change the connector API a bit + misc anality
I modified the API of the new connector a bit.
* include errors
* make names a bit more consistent with what they do
* have symmetry between open and close
* use refcounting
* do parameter checking on inputs
I also made some changes to whitespace and style. And converted
descriptions to gtkdoc style comments.
libck-connector/ck-connector.c | 886
+++++++++++++++++++++++------------
libck-connector/ck-connector.h | 108 +----
pam-ck-connector/pam-ck-connector.c | 287 +++++++-----
3 files changed, 762 insertions(+), 519 deletions(-)
commit fed7e94f76c4279015354ff210bc72f1ac68af70
Author: David Zeuthen <davidz@redhat.com>
Date: Wed Feb 28 13:52:17 2007 -0500
add a connector library and (reluctantly) a PAM module
Here are some patches to add one library and one PAM module so other
programs (apart from gdm) can easily interact with ConsoleKit. It's
mainly going to be used, I think, by login(1) and xinit(1). I'm not
super happy about doing a PAM module but the Fedora util-linux package
maintainer seems to be insist on this instead of just patching
login(1).
The PAM module isn't built by default. Both pieces of code are
licensed
under the MIT license as god knows what might want to use them. Sounds
good to you?
Makefile.am | 2 +
configure.ac | 29 +++
libck-connector/Makefile.am | 22 ++
libck-connector/ck-connector.c | 381
+++++++++++++++++++++++++++++++++++
libck-connector/ck-connector.h | 122 +++++++++++
libck-connector/ck-connector.pc.in | 9 +
pam-ck-connector/Makefile.am | 17 ++
pam-ck-connector/pam-ck-connector.c | 228 +++++++++++++++++++++
pam-ck-connector/pam_ck_connector.8 | 80 ++++++++
9 files changed, 890 insertions(+), 0 deletions(-)
commit 8b33f57e8cd5f451d55fbb0f9bcc3c119a076326
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Feb 28 10:50:46 2007 -0500
add framework for backend tools
System dependent tools will be built in subdirectories under tools.
configure.ac | 23 +++++++++++++++++++++++
tools/Makefile.am | 8 ++++++++
tools/{ => linux}/Makefile.am | 13 ++-----------
3 files changed, 33 insertions(+), 11 deletions(-)
commit 593d2ae454f225c545c35398ddfd2c92389e48a7
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Feb 28 10:47:51 2007 -0500
lay the groundwork for making open session async
Restructure things a bit so that we can be completely async
about creating sessions. We want to do this so we can use
callouts to gather session info or to verify info. Also
make the OpenSession create a parameter list and then create
the session rather than creating the session and changing
attributes. This is less racy and the session will be complete
and correct before any signals are emitted.
src/ck-manager.c | 370
+++++++++++++++++++++++++++++++++++++-----------------
1 files changed, 252 insertions(+), 118 deletions(-)
commit 160f1cdb75e631743312cfd26fb41831ed0f5c8c
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Feb 28 10:43:17 2007 -0500
don't rely on evironment getting updated in python scripts
src/test-open-session-with-parameters | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
commit 7c64a3ab942df6232f1386808a817ff5ecad1311
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Feb 27 12:44:58 2007 -0500
install the list-sessions tool as ck-list-sessions
tools/Makefile.am | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
commit 75c0717053780fe51471213cdb21ee8019bfbb6e
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Feb 26 17:08:23 2007 -0500
post release version bump
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit f772ad2e5c57010f3ca0bbd04a0b490e8f78c07d
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Feb 26 17:07:06 2007 -0500
update news for release
Also fix a distcheck error.
NEWS | 13 +++++++++++++
src/Makefile.am | 3 ++-
2 files changed, 15 insertions(+), 1 deletions(-)
commit 35b022fde7836d0edb5819d4f8be29bd1b9a20d9
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Feb 26 15:18:49 2007 -0500
rename some items in proc.h api; add some more error checking
Make the proc.h API more coherent. Convert some warnings
to debug statements. Fix two leaks. Add more error checking.
src/ck-manager.c | 104
++++++++++++++++++++++++++++++++++--------------------
src/proc-linux.c | 42 ++++++++++++---------
src/proc.h | 17 +++++----
3 files changed, 99 insertions(+), 64 deletions(-)
commit 8fa6f59953fbcae779008c7cdf12441e995b1ca3
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Feb 21 13:22:37 2007 -0500
add support for glib < 2.12
Copy the iso8601 function from glib to support versions less than
2.12.
src/ck-manager.c | 25 ++++++++++++++++++++++++-
src/ck-session.c | 27 +++++++++++++++++++++++++--
2 files changed, 49 insertions(+), 3 deletions(-)
commit 20d3103338d253d09ba7317e6a53310fa9680794
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Feb 21 11:31:54 2007 -0500
make separate test scripts for open session methods
src/ck-manager.c | 1 +
src/{test-session => test-open-session} | 13 +++++--------
...t-session => test-open-session-with-parameters} | 0
3 files changed, 6 insertions(+), 8 deletions(-)
commit 0a8a82bf2701eadb3ef8c3ea927b1d61ea0f68ba
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Feb 21 11:31:09 2007 -0500
don't use null parameters
src/ck-session.c | 32 +++++++++++++++++---------------
1 files changed, 17 insertions(+), 15 deletions(-)
commit eb9361c9b0b05c3bd51de7325c3327db79431fc9
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Feb 20 14:45:40 2007 -0500
add a system-idle-hint and system-idle-since-hint
The system idle hint is TRUE when there are no busy (ie non-idle)
sessions.
So the system is idle when there are no sessions or all sessions
are idle.
src/ck-manager.c | 160
++++++++++++++++++++++++++++++++++++++++++++++------
src/ck-manager.h | 20 +++++-
src/ck-manager.xml | 8 +++
3 files changed, 166 insertions(+), 22 deletions(-)
commit ef89bbdb1be20fbca2a83037fcc922b444b7b513
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Feb 20 14:43:27 2007 -0500
make the idle hint getters sync dbus methods
This makes it easier to use from C code. Also fix a bug where
we weren't emitting the argument in the idle-hint-changed signal.
src/ck-session.c | 23 ++++++++++++++++-------
src/ck-session.h | 6 ++++--
src/ck-session.xml | 2 --
3 files changed, 20 insertions(+), 11 deletions(-)
commit 10a6532e35f4e40135006329a6975942ee896817
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Feb 20 12:07:29 2007 -0500
rename idle methods and signal to indicate they are hints
Rename GetIdle to GetIdleHint (etc) to make it clear that these
are not authoritative properties.
src/ck-session.c | 62
++++++++++++++++++++++++------------------------
src/ck-session.h | 24 +++++++++---------
src/ck-session.xml | 12 ++++----
tools/list-sessions.c | 12 ++++----
4 files changed, 55 insertions(+), 55 deletions(-)
commit 7f7124d4f7583347043b271472e570614d975f35
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Feb 19 17:59:54 2007 -0500
limit the use of errno
Try to limit the use of errno in case it can change.
src/ck-vt-monitor.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
commit 5376650940e9018a0d3e97367d2979f90af749bc
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Feb 19 16:14:22 2007 -0500
handle the no console fd case better
Don't spew warnings when getfd() can't find a suitable console fd.
Also
add a comment to note where getfd.c comes from.
src/ck-vt-monitor.c | 42 ++++++++++++++++++++++++++++++++----------
src/getfd.c | 6 ++++++
2 files changed, 38 insertions(+), 10 deletions(-)
commit 4d7e3eec89f706cb9a46fd84359de3da1868245d
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Feb 19 15:42:37 2007 -0500
improve thread safety
Change to using an async queue for events from VT watching threads.
Add
mutex protection to shared data. Compress the event queue when
possible by
discarding all but the most recent VT activation event.
src/ck-vt-monitor.c | 226
+++++++++++++++++++++++++++++++++++++++------------
1 files changed, 174 insertions(+), 52 deletions(-)
commit 51ff0be15b7bd4a48fd07ada4822f07ddc028af0
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Feb 15 17:20:46 2007 -0500
split list-sessions output onto separate lines
It was getting impossible to read all on one line.
tools/list-sessions.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
commit 497cc86462934168ab8cd379ab1130d4ef5d039b
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Feb 15 16:15:16 2007 -0500
add creation and idle-since times
Added GetCreationTime and GetIdleSince methods. And added the
output to the list-sessions tool.
src/ck-session.c | 49
+++++++++++++++++++++++++++++++++++++++++++++++++
src/ck-session.h | 5 +++++
src/ck-session.xml | 7 +++++++
tools/list-sessions.c | 17 +++++++++++++++--
4 files changed, 76 insertions(+), 2 deletions(-)
commit cbe9b9ba1ca59d25365593fdc1a66f9ffd3183ca
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Feb 15 15:28:27 2007 -0500
implement get/set idle methods
Add the GetIdle and SetIdle methods, and the IdleChanged signal.
SetIdle is restricted to the uid of the session in question.
src/ck-session.c | 166
+++++++++++++++++++++++++++++++++++++++++++++++++---
src/ck-session.h | 7 +-
src/ck-session.xml | 11 ++++
3 files changed, 173 insertions(+), 11 deletions(-)
commit 66c740f30d36bac8f7b56261f0bd595b297d3dd2
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Feb 15 15:26:06 2007 -0500
restrict access to CloseSession
Only allow the uid and pid that opened the session to close it.
src/ck-manager.c | 77
++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 77 insertions(+), 0 deletions(-)
commit be0751cd3ec3638082721b1556c07a4238c6c4ac
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Feb 15 15:23:06 2007 -0500
convert all tabs to spaces
src/ck-manager.c | 154
+++++++++++++++++++++++++++---------------------------
src/ck-seat.c | 18 +++---
src/ck-session.c | 14 +++---
3 files changed, 93 insertions(+), 93 deletions(-)
commit 4009566af9a47aa4a41dac689ff89f017d6dc8db
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Feb 15 15:22:20 2007 -0500
fix compiler warning
src/getfd.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
commit 6c532b986e2a05bf666a8409cf130651e8461874
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Feb 13 08:07:19 2007 -0500
fix warning from missing include
src/ck-vt-monitor.c | 2 +-
src/main.c | 9 +++++----
2 files changed, 6 insertions(+), 5 deletions(-)
commit 4800bf1e4a3706b6829ccc875d040a64a8d17aad
Author: S.Çağlar Onur <caglar@pardus.org.tr>
Date: Tue Feb 13 07:03:50 2007 -0500
create and delete pid file
While try to play with ConsoleKit i realize it cannot create its
pid file, so
if needed attached patch adds that with copy/paste from PolicyKit :).
src/main.c | 25 ++++++++++++++++++++++++-
1 files changed, 24 insertions(+), 1 deletions(-)
commit 1bd5d81ed1c69074d48158a337043fc569970b75
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Feb 12 17:02:35 2007 -0500
post release version bump
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit 87813890f09c1e1ac16f617e8baf7d523e971381
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Feb 12 16:56:24 2007 -0500
add more warnings when building from git
configure.ac | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
commit 32d47eb2f93f97c29b2582add77b54428aefef5a
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Feb 12 16:53:24 2007 -0500
update for release
NEWS | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
commit 3444585150a2f88ccfe92ba5f3959961428d597c
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Feb 12 16:15:51 2007 -0500
use the supplied vt number when updating active session
Just the use vt number given by the vt-manager instead of
asking for the current vt again. A little bit less racy this way.
src/ck-seat.c | 31 +++++++++++++++++++------------
1 files changed, 19 insertions(+), 12 deletions(-)
commit dc427221e1c5028465f4a78132374662341ca3b7
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Feb 8 14:12:10 2007 -0500
Bump thread stack size up to 64k
The minimum stack size 16k seems to crash glibc
when we do printf in debug.
src/ck-vt-monitor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 0c695fd6c3279e8b3f3336337bdc0d66689eff9a
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Feb 7 14:51:16 2007 -0500
support for reconnecting to the system bus
Instead of exiting on disconnect this attempts to reconnect.
Based on patch from: Timo Hoenig <thoenig@suse.de>
src/main.c | 198
++++++++++++++++++++++++++++++++++++++++++++++--------------
1 files changed, 153 insertions(+), 45 deletions(-)
commit 975ccd898da30b3904e287848d6d7661ed0a9dfe
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Feb 7 14:49:05 2007 -0500
reduce the debug buffer size
Reduce the buffer size in the debugging code.
src/ck-debug.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
commit 4cf47cb3072a7995e6dc87fcc7dd4bafe76256f8
Author: David Zeuthen <david@fubar.dk>
Date: Wed Feb 7 11:01:52 2007 -0500
start ck before hal
We should start CK before HAL (especially in light of some changes in
HAL I'm working on); this patch does that for RH based systems. Please
apply. Thanks!
data/ConsoleKit.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 7dcf31d02463faa3c59a9417dae654668d03fea9
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Feb 7 10:57:55 2007 -0500
don't refer to the hal repo
Oops.
HACKING | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit 98addf1933cd24f546177dd4b158c770ea404df0
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Feb 7 10:53:30 2007 -0500
add more information
Add more information that was stolen from the HAL HACKING file.
The parts on how to use git are particularly useful.
HACKING | 94
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 91 insertions(+), 3 deletions(-)
commit 7e4ffe9ca1d65afeb094ee1bb71b0a7751e09e1c
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Feb 6 11:49:35 2007 -0500
Don't keep last session active when switching to a VT without
a session registered on it.
Patch from: David Zeuthen
src/ck-seat.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
commit dc17c930b2ba7dd0a4d0c1ba12c75aa2db18d5a6
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Feb 6 11:46:48 2007 -0500
Add some more debugging output
src/ck-manager.c | 8 +++++++-
src/ck-session.c | 4 +++-
2 files changed, 10 insertions(+), 2 deletions(-)
commit 89ee325cf6a0006e48ce702cd5626b7ef4021b04
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Feb 6 11:46:21 2007 -0500
Make threads use minimum stack size rather than the default.
Patch from: mclasen@redhat.com
src/ck-vt-monitor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit a7208ca3337fef21daa9cd39e0178fe46d31ab99
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Jan 12 16:11:00 2007 -0500
Rename dbus config file.
data/{console-kit.conf => ConsoleKit.conf} | 0
data/Makefile.am | 2 +-
2 files changed, 1 insertions(+), 1 deletions(-)
commit be3fef886b70ccfd5ee48bcd5d9f4cb0256ecbdc
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Jan 12 15:59:04 2007 -0500
Change a console-kit to ConsoleKit in a few places
configure.ac | 11 ++++++-----
data/ConsoleKit.in | 8 ++++----
2 files changed, 10 insertions(+), 9 deletions(-)
commit e7774625aa136e766c064f39d83d031c5af8d900
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Jan 11 11:03:30 2007 -0500
Post release version bump
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 9ced94ab8b658ae31e8d2652d6cfe4d635459014
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Jan 11 10:54:39 2007 -0500
Update for 0.1.0 release
NEWS | 7 +++++++
configure.ac | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
commit e6b013eb3b5310357d6a62a405fcc1da8aad0cf8
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Jan 10 22:45:05 2007 -0500
Add HACKING and README.
HACKING | 8 ++++++++
Makefile.am | 1 +
README | 26 ++++++++++++++++++++++++++
3 files changed, 35 insertions(+), 0 deletions(-)
commit 47b6509e6f386bf47244922b2c3cf5637be117a3
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Nov 17 17:39:51 2006 -0500
Dist the ChangeLog, sigh.
Makefile.am | 1 +
configure.ac | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
commit c05a0ed330836b4f9569b6b6c96d853b8207c33a
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Nov 17 17:33:22 2006 -0500
Automatically generate ChangeLog. Fix autogen. Remove translation
stuff.
Makefile.am | 26 ++-
autogen.sh | 549
++++++++++++++------------------------------------------
configure.ac | 2 -
po/POTFILES.in | 3 -
4 files changed, 158 insertions(+), 422 deletions(-)
commit babc733eff30a2be18fa3f99bc3ef4f14e35d259
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Nov 6 15:28:41 2006 -0500
Fix some small leaks. Add --timed-exit to daemon for valgrinding.
src/ck-manager.c | 11 ++++++++++-
src/ck-session.c | 2 ++
src/main.c | 3 ++-
src/test-session | 3 ++-
src/valgrind.sh | 4 ++--
5 files changed, 18 insertions(+), 5 deletions(-)
commit be02d5de51072235c20d6974f0cccb485055a02e
Author: William Jon McCann <mccann@jhu.edu>
Date: Mon Nov 6 00:35:01 2006 -0500
Show message even when error is NULL. Fix valgrind script.
src/ck-manager.c | 1 -
src/main.c | 4 ++++
src/valgrind.sh | 4 ++--
3 files changed, 6 insertions(+), 3 deletions(-)
commit 7e817628550ab4932baf6059b06049944893af7e
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Oct 31 23:38:41 2006 -0500
Fake the presence of a ChangeLog to work around automake
autogen.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
commit 26b40c39ef74eec4f0e9cc7834cfd033a4decbb3
Author: William Jon McCann <mccann@jhu.edu>
Date: Tue Oct 31 22:40:34 2006 -0500
Add a script to test FUS related functionality.
Fix a problem where error was reported twice.
src/ck-seat.c | 5 +++-
src/test-fus | 63
++++++++++++++++++++++++++++++++++++++++++++++++++++++
src/test-session | 13 +++-------
3 files changed, 71 insertions(+), 10 deletions(-)
commit 1d77428175b9684acf582717e7b12b3775ec7e4e
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Oct 27 10:20:57 2006 -0400
Add .gitignore files and rename tool.
.gitignore | 45
++++++++++++++++++++++++++++
data/.gitignore | 3 ++
src/.gitignore | 13 ++++++++
tools/.gitignore | 8 +++++
tools/Makefile.am | 8 ++--
tools/{list-consoles.c => list-sessions.c} | 0
6 files changed, 73 insertions(+), 4 deletions(-)
commit 6b71d5dcaf9178645d83b4cbfc8febbb43ebe9c2
Author: William Jon McCann <mccann@jhu.edu>
Date: Fri Oct 27 09:54:59 2006 -0400
Actually remove files and remember to use commit -a.
INSTALL | 236 -
Makefile.am | 3 -
Makefile.in | 723 --
acinclude.m4 | 88 +
aclocal.m4 | 8166 -----------------
compile | 142 -
config.guess | 1463 ---
config.h.in | 97 -
config.sub | 1579 ----
configure |24456
-------------------------------------------------
configure.ac | 2 +-
data/Makefile.am | 4 +
data/Makefile.in | 443 -
depcomp | 530 --
install-sh | 323 -
intltool-extract.in | 853 --
intltool-merge.in | 1403 ---
intltool-update.in | 1089 ---
ltmain.sh | 6863 --------------
missing | 360 -
mkinstalldirs | 158 -
po/Makefile.in.in | 221 -
src/Makefile.in | 724 --
src/ck-manager-glue.h | 223 -
src/ck-marshal.c | 126 -
src/ck-marshal.h | 28 -
src/ck-seat-glue.h | 167 -
src/ck-session-glue.h | 135 -
tools/Makefile.in | 632 --
29 files changed, 93 insertions(+), 51144 deletions(-)
commit 0c2eba4ba67bcc52e9ce88e49a0dd74ce5ebdea6
Author: William Jon McCann <mccann@jhu.edu>
Date: Thu Oct 26 21:58:54 2006 -0400
Remove all the generated cruft from the tarball import.
autogen.sh | 445
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 445 insertions(+), 0 deletions(-)
commit d8d6b694e11d9433495833dfe09dcb3cf6830c1d
Author: William Jon McCann <mccann@jhu.edu>
Date: Wed Oct 25 16:30:23 2006 -0400
Bump version for git.
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit a08530e838218b3c5859550058e78b8f1abee434
Author: William Jon McCann <mccannwj@acsnb12.pha.jhu.edu>
Date: Wed Oct 25 14:38:19 2006 -0400
Initial import
AUTHORS | 1 +
COPYING | 340 +
INSTALL | 236 +
Makefile.am | 51 +
Makefile.in | 723 ++
acinclude.m4 | 43 +
aclocal.m4 | 8166 +++++++++++++++++
compile | 142 +
config.guess | 1463 +++
config.h.in | 97 +
config.sub | 1579 ++++
configure |24456
+++++++++++++++++++++++++++++++++++++++++++++++++
configure.ac | 236 +
data/ConsoleKit.in | 70 +
data/Makefile.am | 14 +
data/Makefile.in | 443 +
data/console-kit.conf | 49 +
depcomp | 530 ++
install-sh | 323 +
intltool-extract.in | 853 ++
intltool-merge.in | 1403 +++
intltool-update.in | 1089 +++
ltmain.sh | 6863 ++++++++++++++
missing | 360 +
mkinstalldirs | 158 +
po/Makefile.in.in | 221 +
po/POTFILES.in | 3 +
src/Makefile.am | 90 +
src/Makefile.in | 724 ++
src/ck-debug.c | 153 +
src/ck-debug.h | 72 +
src/ck-manager-glue.h | 223 +
src/ck-manager.c | 1017 ++
src/ck-manager.h | 97 +
src/ck-manager.xml | 48 +
src/ck-marshal.c | 126 +
src/ck-marshal.h | 28 +
src/ck-marshal.list | 2 +
src/ck-seat-glue.h | 167 +
src/ck-seat.c | 724 ++
src/ck-seat.h | 111 +
src/ck-seat.xml | 27 +
src/ck-session-glue.h | 135 +
src/ck-session.c | 744 ++
src/ck-session.h | 156 +
src/ck-session.xml | 49 +
src/ck-vt-monitor.c | 360 +
src/ck-vt-monitor.h | 71 +
src/getfd.c | 52 +
src/main.c | 141 +
src/proc-linux.c | 473 +
src/proc.h | 41 +
src/test-session | 51 +
src/valgrind.sh | 12 +
tools/Makefile.am | 42 +
tools/Makefile.in | 632 ++
tools/list-consoles.c | 362 +
57 files changed, 56842 insertions(+), 0 deletions(-)
|